MedAI / Dockerfile
moriire's picture
Update Dockerfile
fbe2880 verified
raw
history blame
426 Bytes
FROM python:3.12
WORKDIR /code
RUN chmod 777 .
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
HOST=0.0.0.0 \
PORT=7860 \
ORIGINS=*
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
RUN chmod 777 .
EXPOSE 7860
CMD ["python", "-m", "main"]