diff --git a/frontend/Dockerfile b/frontend/Dockerfile index e7f0433..18e4f4b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,20 +1,13 @@ -FROM node:22-alpine AS build - +# Build stage +FROM node:22-alpine AS builder WORKDIR /app - COPY package*.json ./ RUN npm ci - COPY . . - RUN npm run build +# Production stage FROM nginx:alpine -RUN apk add --no-cache curl - -COPY --from=build /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf - +COPY --from=builder /app/dist /usr/share/nginx/html EXPOSE 80 - -CMD ["nginx", "-g", "daemon off;"] +CMD ["nginx", "-g", "daemon off;"] \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 2b40a62..2d44bf5 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -4,10 +4,10 @@ -