From 922f3669d1375b03bdf6959d1a826279f926fa12 Mon Sep 17 00:00:00 2001 From: Valentin Heiserer Date: Mon, 25 Aug 2025 17:25:31 +0200 Subject: [PATCH] refactor: simplify Dockerfile by removing redundant build stages --- frontend/Dockerfile | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index ae65862..c263e2f 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -19,22 +19,3 @@ COPY --from=builder /app/static /usr/share/nginx/html EXPOSE 80 CMD ["nginx", "-g", "daemon off;"] -# Use official Node.js image as the base -FROM node:20-alpine AS build - -WORKDIR /app - -COPY package.json package-lock.json ./ -RUN npm ci - -COPY . . -RUN npm run build - -# Use nginx to serve the built frontend -FROM nginx:alpine - -COPY --from=build /app/dist /usr/share/nginx/html -COPY static/ /usr/share/nginx/html - -EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"]