1
0
forked from Kieran/snort

chore: basic dockerfile

This commit is contained in:
Kieran 2023-02-09 19:02:20 +00:00
parent 51e8db651c
commit 8c4cbcdfdc
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
2 changed files with 12 additions and 1 deletions

View File

@ -3,3 +3,5 @@ node_modules/
.vscode/
build/
yarn-error.log
.husky/
.git/

View File

@ -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