Working Web Server changes and Docker Image

This commit is contained in:
Honey committed 2026-02-18 01:28:10 +01:00
1 parent 443184a6fa
commit 8cd8133f9e
8 files changed
+97 -3

No files matched your search

+1 -3
View File
@@ -1,12 +1,10 @@
# Stage 1: Build
FROM node:20-alpine AS build
WORKDIR /app
COPY package.json package-lock.json* ./
COPY package.json ./
RUN npm install
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf