Spaces:
Runtime error
Runtime error
claude[bot] Sunwood-ai-labs commited on
Add Docker environment for index.html
Browse files- Add Dockerfile with nginx Alpine for serving static HTML
- Add docker-compose.yml with port 8080 mapping
- Add .dockerignore to exclude unnecessary files
- Ready for development and production deployment
Co-authored-by: Sunwood-ai-labs <Sunwood-ai-labs@users.noreply.github.com>
- .dockerignore +17 -0
- Dockerfile +15 -0
- docker-compose.yml +17 -0
.dockerignore
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Git files
|
| 2 |
+
.git
|
| 3 |
+
.gitignore
|
| 4 |
+
|
| 5 |
+
# Documentation
|
| 6 |
+
README.md
|
| 7 |
+
CLAUDE.md
|
| 8 |
+
|
| 9 |
+
# Docker files
|
| 10 |
+
Dockerfile
|
| 11 |
+
docker-compose.yml
|
| 12 |
+
.dockerignore
|
| 13 |
+
|
| 14 |
+
# Development files
|
| 15 |
+
.vscode
|
| 16 |
+
.idea
|
| 17 |
+
*.log
|
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use nginx to serve static HTML files
|
| 2 |
+
FROM nginx:alpine
|
| 3 |
+
|
| 4 |
+
# Remove default nginx website
|
| 5 |
+
RUN rm -rf /usr/share/nginx/html/*
|
| 6 |
+
|
| 7 |
+
# Copy our HTML file and assets to nginx directory
|
| 8 |
+
COPY index.html /usr/share/nginx/html/
|
| 9 |
+
COPY assets/ /usr/share/nginx/html/assets/
|
| 10 |
+
|
| 11 |
+
# Expose port 80
|
| 12 |
+
EXPOSE 80
|
| 13 |
+
|
| 14 |
+
# Start nginx
|
| 15 |
+
CMD ["nginx", "-g", "daemon off;"]
|
docker-compose.yml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version: '3.8'
|
| 2 |
+
|
| 3 |
+
services:
|
| 4 |
+
icon-sheet-splitter:
|
| 5 |
+
build: .
|
| 6 |
+
ports:
|
| 7 |
+
- "8080:80"
|
| 8 |
+
container_name: icon-sheet-splitter-app
|
| 9 |
+
restart: unless-stopped
|
| 10 |
+
volumes:
|
| 11 |
+
# Optional: Mount local files for development
|
| 12 |
+
- ./index.html:/usr/share/nginx/html/index.html:ro
|
| 13 |
+
- ./assets:/usr/share/nginx/html/assets:ro
|
| 14 |
+
|
| 15 |
+
networks:
|
| 16 |
+
default:
|
| 17 |
+
name: icon-sheet-splitter-network
|