Kangarroar commited on
Commit
212db8b
1 Parent(s): 438c2df

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -1,13 +1,5 @@
1
  FROM anibali/pytorch:1.13.0-cuda11.8
2
  WORKDIR /app
3
-
4
- COPY ./requirements.txt /app/requirements.txt
5
- COPY ./packages.txt /app/packages.txt
6
- RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
7
- RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
8
- RUN pip3 install --no-cache-dir -r /app/requirements.txt
9
-
10
-
11
  # Set up a new user named "user" with user ID 1000
12
  RUN useradd -m -u 1000 user
13
 
@@ -21,6 +13,13 @@ ENV HOME=/home/user \
21
  # Set the working directory to the user's home directory
22
  WORKDIR $HOME/app
23
 
 
 
 
 
 
 
 
24
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
25
  COPY --chown=user . $HOME/app
26
 
 
1
  FROM anibali/pytorch:1.13.0-cuda11.8
2
  WORKDIR /app
 
 
 
 
 
 
 
 
3
  # Set up a new user named "user" with user ID 1000
4
  RUN useradd -m -u 1000 user
5
 
 
13
  # Set the working directory to the user's home directory
14
  WORKDIR $HOME/app
15
 
16
+ COPY ./requirements.txt /app/requirements.txt
17
+ COPY ./packages.txt /app/packages.txt
18
+ RUN pip install torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1+cu113 -f https://download.pytorch.org/whl/cu113/torch_stable.html
19
+ RUN apt-get update && xargs -r -a /app/packages.txt apt-get install -y && rm -rf /var/lib/apt/lists/*
20
+ RUN pip3 install --no-cache-dir -r /app/requirements.txt
21
+
22
+
23
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
24
  COPY --chown=user . $HOME/app
25