Spaces:
Paused
Paused
Update Dockerfile
Browse files38 unmodified lines39404142434445464748495051525354555657585911 unmodified lines717273747576777838 unmodified lines# Set password for root userRUN echo "root:137955" | chpasswd# All users can use /root as their home directoryENV HOME=/rootRUN mkdir $HOME/.cache $HOME/.config \&& chmod -R 777 $HOME# Set up the Conda environmentENV CONDA_AUTO_UPDATE_CONDA=false \PATH=$HOME/miniconda/bin:$PATHRUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \&& chmod +x ~/miniconda.sh \&& ~/miniconda.sh -b -p ~/miniconda \&& rm ~/miniconda.sh \&& conda clean -yaWORKDIR $HOME/app# User Debian packages## Security warning: Potential user code executed as root (build time)11 unmodified linesRUN --mount=target=requirements.txt,source=requirements.txt \pip install --no-cache-dir --upgrade -r requirements.txt# Copy the current directory contents into the container at $HOME/app setting the owner to rootCOPY --chown=root . $HOME/appRUN chmod +x start_server.sh38 unmodified lines394041424344454647484950515253545556575811 unmodified lines707172737475767738 unmodified lines# Set password for root userRUN echo "root:137955" | chpasswd# Ensure the directories exist and set the correct permissionsRUN mkdir -p /root/.cache /root/.config \&& chmod -R 777 /root# Set up the Conda environmentENV CONDA_AUTO_UPDATE_CONDA=false \PATH=/root/miniconda/bin:$PATHRUN curl -sLo ~/miniconda.sh https://repo.continuum.io/miniconda/Miniconda3-py39_4.10.3-Linux-x86_64.sh \&& chmod +x ~/miniconda.sh \&& ~/miniconda.sh -b -p ~/miniconda \&& rm ~/miniconda.sh \&& conda clean -yaWORKDIR /root/app# User Debian packages## Security warning: Potential user code executed as root (build time)11 unmodified linesRUN --mount=target=requirements.txt,source=requirements.txt \pip install --no-cache-dir --upgrade -r requirements.txt# Copy the current directory contents into the container at /root/app setting the owner to rootCOPY --chown=root . /root/appRUN chmod +x start_server.sh
Dockerfile+7-8