17 lines
329 B
Docker
17 lines
329 B
Docker
FROM nginx:alpine
|
|
|
|
# Remove default nginx website
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy nginx configuration
|
|
COPY nginx.conf /etc/nginx/nginx.conf
|
|
|
|
# Copy static files
|
|
COPY ./public /usr/share/nginx/html
|
|
COPY ./src /usr/share/nginx/html/src
|
|
COPY ./css /usr/share/nginx/html/css
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|