Oberfläche Bereitstellen

This commit is contained in:
2025-06-13 19:06:36 +02:00
parent 91849375c7
commit a09edcae25
5 changed files with 56 additions and 33 deletions
+15 -2
View File
@@ -1,3 +1,16 @@
FROM httpd:2.4
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN npm prune --production
COPY ./public/ /usr/local/apache2/htdocs/
FROM node:22-alpine
WORKDIR /app
COPY --from=builder /app/build build/
COPY --from=builder /app/node_modules node_modules/
COPY package.json .
EXPOSE 3000
ENV NODE_ENV=production
CMD [ "node", "build" ]