From d067e0b95c6c20efe18928b508f378a86de498d9 Mon Sep 17 00:00:00 2001 From: Jose Henrique Date: Sat, 21 Mar 2026 00:16:32 -0300 Subject: [PATCH] try --- Dockerfile | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5bfac58..fa42768 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,34 +1,14 @@ FROM node:22-alpine AS builder -# Set working directory WORKDIR /app - -# Copy package.json and package-lock.json (if available) COPY package*.json ./ - -# Install dependencies -RUN npm install - -# Copy the rest of the application +RUN npm ci COPY . . - -# Run prepare scripts to fetch required assets RUN sh scripts/prepare_release.sh - -# Build the application RUN npm run build -# Production stage FROM nginx:alpine - -# Copy the built application from the builder stage COPY --from=builder /app/dist /usr/share/nginx/html - -# Copy the manifest.json COPY manifest.json /usr/share/nginx/html/ - -# Expose port 80 EXPOSE 80 - -# Start Nginx CMD ["nginx", "-g", "daemon off;"]