From ec216bfb9f7d74dc96c009e871b342304bbdafff Mon Sep 17 00:00:00 2001 From: glax Date: Sat, 11 Oct 2025 21:01:48 +0200 Subject: [PATCH] Update dockerfile --- Dockerfile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index bff08bf..932061a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,25 +2,16 @@ FROM node:24-alpine AS builder WORKDIR /app -COPY ./website/package.json /app - -RUN npm update -g npm -RUN npm install - -# Build stage -FROM node:24-alpine AS gen -WORKDIR /app - -COPY --from=builder /app /app - -COPY ./website /app -RUN npm run generate +COPY website/* /app +RUN npm -dd install -g npm +RUN npm -dd install +RUN npm -dd run generate # Serve stage FROM nginx:alpine3.22-slim # Copy built files from Vite's dist folder -COPY --from=gen /app/.output/public /usr/share/nginx/html +COPY --from=builder /app/.output/public /usr/share/nginx/html #COPY --from=builder /app/tranga-website/media /usr/share/nginx/html/media COPY ./nginx /etc/nginx