forked from Kieran/snort
chore: basic dockerfile
This commit is contained in:
parent
51e8db651c
commit
8c4cbcdfdc
@ -3,3 +3,5 @@ node_modules/
|
|||||||
.vscode/
|
.vscode/
|
||||||
build/
|
build/
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
.husky/
|
||||||
|
.git/
|
@ -0,0 +1,9 @@
|
|||||||
|
FROM node:16 as build
|
||||||
|
WORKDIR /app
|
||||||
|
COPY package*.json yarn.lock .
|
||||||
|
RUN yarn install
|
||||||
|
COPY . .
|
||||||
|
RUN yarn build
|
||||||
|
|
||||||
|
FROM nginx
|
||||||
|
COPY --from=build /app/build /usr/share/nginx/html
|
Loading…
Reference in New Issue
Block a user