hatch-surf/site/Dockerfile
Riley Zhang 6811b86d7f Dockerize hatch.surf homepage
- Created Dockerfile using nginx:alpine to serve static files
- Created docker-compose.yml for easy local development
- Added .dockerignore to exclude unnecessary files
- Updated README with Docker instructions
- Tested locally to ensure site runs correctly

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-24 07:52:29 +02:00

19 lines
429 B
Docker

# Dockerfile for hatch.surf homepage
# Uses nginx:alpine to serve static files
FROM nginx:alpine
# Remove default nginx static assets
RUN rm -rf /usr/share/nginx/html/*
# Copy static files from site directory
COPY . /usr/share/nginx/html/
# Copy custom nginx configuration for SPA routing if needed
# COPY nginx.conf /etc/nginx/conf.d/default.conf
# Expose port 80
EXPOSE 80
# Start nginx
CMD ["nginx", "-g", "daemon off;"]