Original Setup
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
FROM python:3.12-slim
|
||||
|
||||
ENV PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONUNBUFFERED=1
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install --no-cache-dir \
|
||||
flask \
|
||||
gunicorn
|
||||
|
||||
COPY . .
|
||||
|
||||
EXPOSE 5000
|
||||
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app_base"]
|
||||
@@ -0,0 +1,18 @@
|
||||
services:
|
||||
homepage:
|
||||
restart: unless-stopped
|
||||
container_name: home-page
|
||||
build: .
|
||||
volumes:
|
||||
- ./images:/app/images:ro
|
||||
- ./templates:/app/templates:ro
|
||||
networks:
|
||||
- reverse_proxy_default
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "3"
|
||||
networks:
|
||||
reverse_proxy_default:
|
||||
external: true
|
||||
Reference in New Issue
Block a user