remove nginx ref
This commit is contained in:
16
Dockerfile
16
Dockerfile
@ -1,5 +1,4 @@
|
|||||||
# Build stage
|
FROM node:18-alpine
|
||||||
FROM node:18-alpine AS builder
|
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@ -15,15 +14,6 @@ COPY . .
|
|||||||
# Build the application
|
# Build the application
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
# Production stage
|
EXPOSE 4173
|
||||||
FROM nginx:alpine
|
|
||||||
|
|
||||||
# Copy built application
|
CMD ["npm", "run", "preview"]
|
||||||
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
||||||
|
|
||||||
# Copy nginx configuration
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
|
||||||
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
|
||||||
Reference in New Issue
Block a user