feat(docker): Updated Docker configuration for improved security and build efficiency

- Removed sensitive files from .dockerignore
- Moved WORKDIR to /app in Dockerfile
- Added gunicorn==23.0.0 dependency in RUN command
- Created new docker-compose.yml file for service definition
This commit is contained in:
Adrian Priestley
2024-12-28 18:19:02 -03:30
committed by Adrian Priestley
parent 62a33b0022
commit 2af68c57a4
3 changed files with 228 additions and 3 deletions

22
docker-compose.yml Normal file
View File

@@ -0,0 +1,22 @@
services:
web:
build:
context: .
command: python WebHost.py
volumes:
- static_volume:/app/WebHostLib
- ./config.yaml:/app/config.yaml
expose:
- 5000
nginx:
image: nginx:stable-alpine
volumes:
- static_volume:/app/WebHostLib
- ./nginx.conf:/etc/nginx/conf.d/default.conf
ports:
- 7235:80
depends_on:
- web
volumes:
static_volume: