17 lines
369 B
Docker
17 lines
369 B
Docker
# Use nginx alpine for minimal size
|
|
FROM nginx:alpine
|
|
|
|
# Copy custom nginx config
|
|
COPY default.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Copy static files to nginx html directory
|
|
COPY index.html /usr/share/nginx/html/
|
|
COPY style.css /usr/share/nginx/html/
|
|
COPY script.js /usr/share/nginx/html/
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|
|
|
|
# Start nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|