18 lines
369 B
Docker
18 lines
369 B
Docker
# Use the official Nginx image as the base
|
|
FROM nginx:alpine
|
|
|
|
# Remove default nginx website
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy build output from dist folder to nginx html directory
|
|
COPY build/ /usr/share/nginx/html/
|
|
|
|
# Copy custom nginx config
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|
|
|
|
# Start nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|