12 lines
384 B
Docker
12 lines
384 B
Docker
# Use the official nginx image as the base
|
|
FROM nginx:alpine
|
|
|
|
# Remove the default nginx static files
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy the content of /srv directory to the nginx serving directory
|
|
# Note: You need to have the /srv directory with your files on the Docker host
|
|
COPY /srv /usr/share/nginx/html
|
|
|
|
# Start nginx in the foreground
|
|
CMD ["nginx", "-g", "daemon off;"] |