added dockerfile, so you can run this in 1 click
This commit is contained in:
parent
069d2b1667
commit
6652284dbc
4 changed files with 35 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -1,2 +1,4 @@
|
||||||
venv
|
venv
|
||||||
src/static/uploads
|
src/static/uploads
|
||||||
|
data
|
||||||
|
src/lovedb.db
|
||||||
|
|
|
||||||
19
Dockerfile
Normal file
19
Dockerfile
Normal 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
14
docker-compose.yml
Normal 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
|
||||||
BIN
src/__pycache__/main.cpython-314.pyc
Normal file
BIN
src/__pycache__/main.cpython-314.pyc
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue