File size: 1,057 Bytes
6a7f9b3 b879795 8d4e327 0da959e dea771b a3a5fc1 dea771b a3a5fc1 dea771b 2344d73 096a065 2344d73 dea771b 9e856ba 2344d73 9e856ba dea771b 23cc17e 6921a2b 23cc17e 9ef616c 23cc17e 4bc7057 55b453f b55971a b879795 |
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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
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"]
# Set up a new user named "user" with user ID 1000
RUN mkdir -p /maps
WORKDIR /maps
COPY maps/*pickle .
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
#RUN chmod 777 /data
#RUN useradd -m -u 1000 user
#USER user
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
COPY --chown=user . $HOME/app
ENV AMBERHOME="/usr/bin/amber22"
ENV PATH="$AMBERHOME/bin:$PATH"
ENV PYTHONPATH="$AMBERHOME/lib/python3.8/site-packages"
RUN pip install -r requirements.txt
CMD ["python", "main.py"]
|