found diff
This commit is contained in:
+5
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user