add Dockerfile

main
radex 2024-02-02 00:31:38 +01:00
parent 46513b3ebc
commit 61a70e898a
Signed by: radex
SSH Key Fingerprint: SHA256:hvqRXAGG1h89yqnS+cyFTLKQbzjWD4uXIqw7Y+0ws30
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View 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/