pgsoft/ai_patcher_interface
0
1# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker2# you will also find guides on how best to write your Dockerfile3 4FROM python:3.10.55 6# Set up a new user named "user" with user ID 10007RUN useradd -m -u 1000 user8 9# Switch to the "user" user10USER user11 12# Set home to the user's home directory13ENV HOME=/home/user \14 PATH=/home/user/.local/bin:$PATH15 16# Set the working directory to the user's home directory17WORKDIR $HOME/code18 19COPY ./requirements.txt /code/requirements.txt20 21RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt22 23COPY . .24 25CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]