add Dockerfile
This commit is contained in:
parent
46513b3ebc
commit
61a70e898a
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -0,0 +1,14 @@
|
|||
# builder image
|
||||
FROM node:18.18 as builder
|
||||
|
||||
WORKDIR /home/node/app
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN npm install
|
||||
RUN npx gulp build
|
||||
|
||||
# runtime image (static server)
|
||||
FROM nginxinc/nginx-unprivileged:latest as runtime
|
||||
|
||||
COPY --from=builder /home/node/app/dist /usr/share/nginx/html/
|
Loading…
Add table
Reference in a new issue