Add Docker support with Dockerfile and .dockerignore

This commit is contained in:
Ploc300
2025-02-12 21:11:46 +01:00
parent fd1c4492d8
commit 14f3469949
2 changed files with 25 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM node:23.7.0-alpine3.21 as builder
WORKDIR /app
COPY package*.json .
RUN npm ci --omit=dev && npm cache clean --force
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
EXPOSE 3006
CMD ["nginx", "-g", "daemon off;"]