- Add Dockerfile using nginx:alpine base image - Add docker-compose.yml for easy container management - Add nginx.conf with minimal configuration and gzip compression - Service renamed to 'ui' for better naming convention
11 lines
193 B
Docker
11 lines
193 B
Docker
FROM nginx:alpine
|
|
|
|
# Copy the HTML file
|
|
COPY index.html /usr/share/nginx/html/index.html
|
|
|
|
# Copy nginx configuration
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Expose port 80
|
|
EXPOSE 80
|
|
|