Commit 414adf28 authored by thetechrobo's avatar thetechrobo
Browse files

Support for Docker

parent 5f84fd91
Loading
Loading
Loading
Loading

Dockerfile

0 → 100644
+8 −0
Original line number Diff line number Diff line
FROM python:3.10-slim-bullseye
RUN pip install --no-cache-dir gunicorn flask[async] requests
RUN apt install -y openssl

COPY . /app
EXPOSE 8000
WORKDIR /app
ENTRYPOINT ["gunicorn", "-b", "0.0.0.0:8000", "--config", "gunicorn.conf", "app:app"]

gunicorn.conf

0 → 100644
+7 −0
Original line number Diff line number Diff line
import os

for k,v in os.environ.items():
    if k.startswith("GUNICORN_"):
        key = k.split('_', 1)[1].lower()
        locals()[key] = v

sc.sh

0 → 100755
+3 −0
Original line number Diff line number Diff line
#!/usr/bin/zsh

cp -v /home/thetechrobo/stdocker/* .