Freehost / Dockerfile
Sankie005's picture
Created dockerfile
5787869
raw
history blame
No virus
404 Bytes
FROM python:3.11
ENV PYTHONUNBUFFERED 1
#
RUN mkdir ./.cache
RUN mkdir /code
WORKDIR /code
#
COPY ./requirements.txt /code/requirements.txt
#
RUN pip install --no-cache-dir --upgrade -r requirements.txt
#
COPY ./app /code/app
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
#
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]