diff --git a/Dockerfile b/Dockerfile index e1331fc..2f96679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ -# Build stage -FROM node:18-alpine AS builder +FROM node:18-alpine WORKDIR /app @@ -15,15 +14,6 @@ COPY . . # Build the application RUN npm run build -# Production stage -FROM nginx:alpine +EXPOSE 4173 -# Copy built application -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;"] \ No newline at end of file +CMD ["npm", "run", "preview"] \ No newline at end of file