This commit is contained in:
2026-05-01 20:08:49 +02:00
parent d9cae926d8
commit 72a9f9d9e2
2 changed files with 45 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:20-alpine AS build
WORKDIR /app
@@ -6,5 +6,13 @@ COPY package.json package-lock.json* ./
RUN npm install
COPY . .
RUN npm run build
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0", "--port", "3000"]
FROM nginx:1.27-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 3000
CMD ["nginx", "-g", "daemon off;"]