17 lines
372 B
Docker
17 lines
372 B
Docker
# Use the official lightweight Nginx image
|
|
FROM nginx:alpine
|
|
|
|
# Set working directory to Nginx asset directory
|
|
WORKDIR /usr/share/nginx/html
|
|
|
|
# Remove default Nginx static files
|
|
RUN rm -rf ./*
|
|
|
|
# Copy static files from host to container
|
|
COPY ./ .
|
|
|
|
# Expose port 80 (HTTP)
|
|
EXPOSE 80
|
|
|
|
# Start Nginx in foreground (Alpine uses `sh` syntax)
|
|
CMD ["nginx", "-g", "daemon off;"]
|