healthy_oil/Dockerfile

16 lines
286 B
Docker

# Production stage
FROM node:18-alpine as production
WORKDIR /app
# Install serve globally
RUN npm install -g serve
# Copy built files from build stage
COPY --from=build /app/dist ./dist
EXPOSE 3000
# Use the -s flag to handle SPA routing
CMD ["serve", "-s", "dist", "-l", "3000"]