add Dockerfile
parent
46513b3ebc
commit
61a70e898a
|
@ -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…
Reference in New Issue