JFoz/test_path_analysis
0
1# https://huggingface.co/spaces/sayakpaul/demo-docker-gradio/blob/main/Dockerfile2 3FROM python:3.94 5WORKDIR /code6 7COPY *.py /code/8 9COPY ./requirements.txt /code/requirements.txt10 11RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt12 13# Set up a new user named "user" with user ID 100014RUN useradd -m -u 1000 user15 16# Switch to the "user" user17USER user18 19# Set home to the user's home directory20ENV HOME=/home/user \21 PATH=/home/user/.local/bin:$PATH22 23# Set the working directory to the user's home directory24WORKDIR $HOME/app25 26# Copy the current directory contents into the container at $HOME/app setting the owner to the user27COPY --chown=user . $HOME/app28 29CMD ["python", "app_local.py"]