CoolFace
Apppublic

coldn00dl3s/fixit-assignment

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile20 linesDownload Raw Back to root
1FROM python:3.9
2
3WORKDIR /code
4
5COPY ./requirements.txt /code/requirements.txt
6
7RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
8
9COPY . .
10
11RUN useradd -m -u 1000 user
12USER user
13ENV HOME=/home/user \
14	PATH=/home/user/.local/bin:$PATH
15
16WORKDIR $HOME/app
17
18COPY --chown=user . $HOME/app
19
20CMD ["uvicorn", "backend:app", "--host", "0.0.0.0", "--port", "7860"]