ejschwartz/function-method-detector
1
1## Based on https://huggingface.co/spaces/sayakpaul/demo-docker-gradio/blob/main/Dockerfile2 3FROM seipharos/pharos4 5WORKDIR /code6 7COPY ./requirements.txt /code/requirements.txt8 9RUN apt-get -y update && apt-get -y install python3-pip10 11# Switch to the "user" user12USER ubuntu13 14RUN pip3 install --break-system-packages --no-cache-dir --upgrade setuptools pip15 16RUN pip3 install --break-system-packages --no-cache-dir --upgrade -r /code/requirements.txt17 18# Set home to the user's home directory19ENV HOME=/home/ubuntu \20 PATH=/home/ubuntu/.local/bin:$PATH21 22# Set the working directory to the user's home directory23WORKDIR $HOME/app24 25# Copy the current directory contents into the container at $HOME/app setting the owner to the user26COPY --chown=ubuntu . $HOME/app27 28# Disable buffering to allow logging of standard output.29ENV PYTHONUNBUFFERED=130 31CMD ["python3", "app.py"]32 