Added docker and improved everything.
This commit is contained in:
19
devbox-back/Dockerfile
Normal file
19
devbox-back/Dockerfile
Normal 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" ]
|
Reference in New Issue
Block a user