File size: 445 Bytes
91f0a33 f9d87b8 91f0a33 f9d87b8 91f0a33 f9d87b8 91f0a33 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | FROM python:3.10
WORKDIR /home/app
RUN apt-get update -y && \
apt-get install -y nano unzip libgl1 curl && \
rm -rf /var/lib/apt/lists/*
RUN curl -fsSL https://get.deta.dev/cli.sh | sh
RUN useradd -m appuser
COPY requirements.txt /dependencies/requirements.txt
RUN pip install -r /dependencies/requirements.txt
COPY . /home/app
USER appuser
CMD gunicorn app:app --bind 0.0.0.0:$PORT --worker-class uvicorn.workers.UvicornWorker |