TextAdventure/Dockerfile
Jonas Hinterdorfer 051d40a2f6
All checks were successful
Build, Publish Docker Image, and Deploy to Kubernetes / build_and_push (push) Successful in 18s
Build, Publish Docker Image, and Deploy to Kubernetes / deploy_to_k8s (push) Successful in 11s
Update Dockerfile
2025-03-17 12:53:47 +01:00

17 lines
422 B
Docker

# Use an official Nginx image as the base image
FROM nginx:alpine
# Set the working directory inside the container
WORKDIR /usr/share/nginx/html
# Copy the index.html and adventure.pl files into the Nginx directory
COPY index.html /usr/share/nginx/html/
COPY adventure.pl /usr/share/nginx/html/
# Expose port 80 to allow access to the web server
EXPOSE 80
# Start the Nginx server
CMD ["nginx", "-g", "daemon off;"]