DeepDiveDev commited on
Commit
53d72d6
·
verified ·
1 Parent(s): be076ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,7 +1,10 @@
1
-
2
  FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1
3
 
4
- # Install necessary packages
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
  git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
7
  && rm -rf /var/lib/apt/lists/* \
@@ -15,14 +18,12 @@ RUN apt-get update && apt-get install -y fakeroot \
15
  && rm -rf /var/lib/apt/lists/* \
16
  && useradd -m -u 1000 user
17
 
18
- # Set the working directory
19
- WORKDIR /home/user/app
20
-
21
  # Upgrade pip to the latest version
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Copy requirements.txt to the container
25
  COPY requirements.txt /tmp/requirements.txt
26
 
27
- # Install packages from requirements.txt
28
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
 
 
1
+ # Use the official Python image
2
  FROM docker.io/library/python:3.10@sha256:aaacc373f21abcbc67a22d203dab7fb797c016cc4c1daa7d2dec359dcbf4aea1
3
 
4
+ # Set the working directory
5
+ WORKDIR /home/user/app
6
+
7
+ # Install necessary system packages
8
  RUN apt-get update && apt-get install -y \
9
  git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
10
  && rm -rf /var/lib/apt/lists/* \
 
18
  && rm -rf /var/lib/apt/lists/* \
19
  && useradd -m -u 1000 user
20
 
 
 
 
21
  # Upgrade pip to the latest version
22
  RUN pip install --no-cache-dir --upgrade pip
23
 
24
  # Copy requirements.txt to the container
25
  COPY requirements.txt /tmp/requirements.txt
26
 
27
+ # Install Python packages from requirements.txt
28
  RUN pip install --no-cache-dir -r /tmp/requirements.txt
29
+