rairo commited on
Commit
6a3b5a7
·
verified ·
1 Parent(s): 13e3258

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -1,5 +1,12 @@
1
  FROM python:3.10
2
 
 
 
 
 
 
 
 
3
  # Set up a new user named "user" with user ID 1000
4
  RUN useradd -m -u 1000 user
5
 
@@ -25,4 +32,4 @@ USER user
25
  ENV HOME=/home/user \
26
  PATH=/home/user/.local/bin:$PATH
27
 
28
- CMD ["python", "main.py"]
 
1
  FROM python:3.10
2
 
3
+ # Install system-level dependencies
4
+ COPY packages.txt .
5
+ RUN apt-get update && \
6
+ xargs -a packages.txt apt-get install -y && \
7
+ apt-get clean && \
8
+ rm -rf /var/lib/apt/lists/*
9
+
10
  # Set up a new user named "user" with user ID 1000
11
  RUN useradd -m -u 1000 user
12
 
 
32
  ENV HOME=/home/user \
33
  PATH=/home/user/.local/bin:$PATH
34
 
35
+ CMD ["python", "main.py"]