Made the Dockerfile only build, not deploy via Nginx. (For now).

This commit is contained in:
2026-01-01 19:56:09 -06:00
parent 28d200d884
commit 5277bfaa89
2 changed files with 1 additions and 31 deletions

View File

@@ -1,4 +1,4 @@
FROM node:22 as builder
FROM node:22
# Copy package*.json
COPY package*.json .
@@ -11,14 +11,3 @@ COPY . .
# Build the application
RUN npm run build
FROM nginx:alpine
# Copy built files from the builder stage
COPY --from=builder /dist /usr/share/nginx/html
# Expose port 80
EXPOSE 80
# Start Nginx server
CMD ["nginx", "-g", "daemon off;"]