15 lines
299 B
Docker
15 lines
299 B
Docker
# Use lightweight Nginx image
|
|
FROM nginx:alpine
|
|
|
|
# Remove default nginx static files
|
|
RUN rm -rf /usr/share/nginx/html/*
|
|
|
|
# Copy your HTML/CSS/JS files into nginx's web root
|
|
COPY . /usr/share/nginx/html
|
|
|
|
# Expose port 80 for the web server
|
|
EXPOSE 80
|
|
|
|
# Start nginx
|
|
CMD ["nginx", "-g", "daemon off;"]
|