doclink_api / Dockerfile
Gopal2002's picture
Upload 4 files
a467a2d verified
raw
history blame contribute delete
452 Bytes
# Use the official Python 3.10.12 image
FROM python:3.10.12
# Copy the current directory contents into the container at .
COPY . .
# Set the working directory to /
WORKDIR /
RUN pip install --no-cache-dir --upgrade -r /requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]