found diff

This commit is contained in:
2023-03-30 13:44:59 +00:00
parent 0a65dbd75d
commit a27f5caf0c
4 changed files with 38 additions and 10 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
# Use an existing image as the base
FROM pytorch/pytorch:1.12.0-cuda11.3-cudnn8-devel
FROM nvcr.io/nvidia/pytorch:23.03-py3
# Add the current user to the image
ARG USER_NAME=lhunor
@@ -8,7 +8,7 @@ ARG GROUP_NAME=guest
ARG GROUP_ID=11000
# Update the system and install required packages
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo git
RUN apt-get update && apt-get upgrade -y && apt-get install -y sudo git apt-utils
# Create a new group with the same GID as the host
RUN groupadd --gid $GROUP_ID $GROUP_NAME
@@ -26,8 +26,10 @@ RUN usermod -aG sudo $USER_NAME
# Set the default user to the new user
USER $USER_NAME
WORKDIR /home/$USER_NAME
WORKDIR /workspace
ENV PATH="$PATH:/home/$USER_NAME/.local/bin"
RUN pip install --upgrade pip
COPY requirements.txt /tmp/
RUN pip install --requirement /tmp/requirements.txt