stochasticribosome's picture
Move requirements after copying
4bc7057
raw
history blame
598 Bytes
FROM sab148/misato-dataset:latest
USER root
# Set up time zone.
#RUN useradd -m -u 1000 user
#USER user
#ENV HOME=/home/user \
# PATH=/home/user/.local/bin:$PATH
#WORKDIR $HOME/app
#COPY --chown=user . $HOME/app
#RUN adduser -u 5678 --disabled-password --gecos "" appuser && chown -R appuser .
#
#USER appuser
#
#CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
WORKDIR $HOME/app
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
COPY --chown=user . $HOME/app
RUN pip install -r requirements.txt
CMD ["python", "main.py"]