File size: 865 Bytes
66f8fc1 18bb1e9 66f8fc1 dcfc6f9 56069ce dcfc6f9 56069ce dcfc6f9 56069ce 7b16201 56069ce dcfc6f9 e84ad1b 80fa96c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
FROM ghcr.io/cmu-sei/pharos:pichash-work
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN apt-get -y update && apt-get -y install python3-pip python-is-python3
# Switch to the "user" user
USER ubuntu
# Set home to the user's home directory
ENV HOME=/home/ubuntu \
PATH=/home/ubuntu/.local/bin:$PATH
RUN pip install --break-system-packages --no-cache-dir --upgrade setuptools pip
RUN pip install --break-system-packages --no-cache-dir --upgrade -r /code/requirements.txt
# Set the working directory to the user's home directory
WORKDIR $HOME/app
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
COPY --chown=ubuntu . $HOME/app
CMD ["python", "main.py"] |