Spaces:
Sleeping
Sleeping
File size: 383 Bytes
c2eb8a0 9dc742b c2eb8a0 9dc742b cd153fa c2eb8a0 cd153fa c2eb8a0 b64ba77 eb8a269 b64ba77 eb8a269 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
WORKDIR /code
RUN chown -R user:user /code
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY ./requirements.txt ./
RUN pip install --no-cache-dir -r ./requirements.txt
COPY --chown=user . $HOME/app
#ENTRYPOINT ["gunicorn", "main:app"]
#ENV GUNICORN_TIMEOUT 300
CMD ["python", "main.py"] |