added dockerfile, so you can run this in 1 click

This commit is contained in:
bacalhau 2026-03-08 17:30:55 +00:00
parent 069d2b1667
commit 6652284dbc
4 changed files with 35 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,2 +1,4 @@
venv venv
src/static/uploads src/static/uploads
data
src/lovedb.db

19
Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM python:3.14.3-alpine3.23
WORKDIR /app
COPY requirements.txt .
RUN apk add gpg
RUN pip install --no-cache-dir -r requirements.txt
COPY src/ ./src/
EXPOSE 5000
ENV FLASK_APP=src/main.py
ENV FLASK_RUN_HOST=0.0.0.0
ENV FLASK_ENV=production
CMD ["flask", "run"]

14
docker-compose.yml Normal file
View file

@ -0,0 +1,14 @@
services:
web:
build: .
container_name: dating
ports:
- "5000:5000"
volumes:
- ./src:/app/src
- ./data:/app/data
environment:
- FLASK_APP=src/main.py
- FLASK_RUN_HOST=0.0.0.0
- FLASK_ENV=development
restart: unless-stopped

Binary file not shown.