whatsthispdf04 / Dockerfile
mitulagr2's picture
Update Dockerfile
b31f166
raw
history blame
343 Bytes
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"]