Added docker and improved everything.

This commit is contained in:
2025-06-09 15:29:58 +02:00
parent 47d4ed1cc0
commit 82bb0340c4
9 changed files with 316 additions and 56 deletions

19
devbox-back/Dockerfile Normal file
View File

@ -0,0 +1,19 @@
FROM python:3.13.4-alpine
RUN apk update \
&& apk upgrade \
&& mkdir -p /usr/src/app
EXPOSE 8000
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt
COPY app/* .
CMD [ "gunicorn", "--config", "gunicorn-cfg.py", "main:app" ]