File size: 394 Bytes
32ce90d
6f09355
 
 
 
38d7c96
 
 
c6d4f9d
32ce90d
38d7c96
 
6f09355
38d7c96
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
WORKDIR /code
RUN chown -R user:user /code
ENV HOME=/home/user
ENV PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY ./requirements.txt ./
RUN pip install --no-cache-dir -r ./requirements.txt
COPY --chown=user . $HOME/app
# COPY --chown=user:user . /code
# COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]