From e4e87abac5aaab08fb59e8894b62619f54a405f0 Mon Sep 17 00:00:00 2001 From: Tola Leng Date: Fri, 28 Nov 2025 17:01:41 +0700 Subject: [PATCH] Remove dockerfile of frontend from root directory --- Dockerfile.frontend | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 Dockerfile.frontend diff --git a/Dockerfile.frontend b/Dockerfile.frontend deleted file mode 100644 index 07e0855..0000000 --- a/Dockerfile.frontend +++ /dev/null @@ -1,21 +0,0 @@ -FROM node:20-alpine AS build -WORKDIR /app - -# Install dependencies -COPY application/package.json application/package-lock.json ./ -RUN npm ci - -# Copy source and build -COPY application/. . -RUN npm run build - -FROM nginx:1.27-alpine -RUN rm -rf /usr/share/nginx/html/* -COPY --from=build /app/dist /usr/share/nginx/html - -# SPA fallback + static asset caching -RUN printf 'server {\n listen 80;\n server_name _;\n root /usr/share/nginx/html;\n index index.html;\n location / { try_files $uri $uri/ /index.html; }\n location ~* \\.(?:js|css|png|jpg|jpeg|gif|svg|ico|woff2?)$ { expires 7d; add_header Cache-Control "public, max-age=604800, immutable"; try_files $uri =404; }\n}\n' > /etc/nginx/conf.d/default.conf - -EXPOSE 80 -CMD ["nginx","-g","daemon off;"] -