adds docker & fly.toml
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM python:3.13.1 AS builder
|
||||
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
PYTHONDONTWRITEBYTECODE=1
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
RUN python -m venv .venv
|
||||
COPY requirements.txt ./
|
||||
RUN .venv/bin/pip install -r requirements.txt
|
||||
FROM python:3.13.1-slim
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/.venv .venv/
|
||||
COPY . .
|
||||
CMD ["/app/.venv/bin/flask", "run", "--host=0.0.0.0", "--port=8080"]
|
||||
Reference in New Issue
Block a user