Spaces:
Running
Running
File size: 339 Bytes
5e8fd8b 71e259a 1243f24 ac693fd 1243f24 1d0ea97 369dfa8 5e8fd8b 4929aba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
FROM python:3.11
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
COPY ./app /code/app
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN useradd -m docker && echo "docker:docker" | chpasswd && adduser docker sudo
USER docker
EXPOSE 7860
CMD ["fastapi", "run", "/code/app/main.py", "--port", "7860"] |