LittleKnife commited on
Commit
bd6255b
·
verified ·
1 Parent(s): 07208d9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -4,9 +4,6 @@ FROM python:3.10.9
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
7
- # Switch to the "user" user
8
- USER user
9
-
10
  # Install wkhtmltopdf and its dependencies as root
11
  USER root
12
  RUN apt-get update && apt-get install -y --no-install-recommends \
@@ -14,6 +11,9 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
14
  && apt-get clean \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
 
 
17
  # Set home to the user's home directory
18
  ENV HOME=/home/user \
19
  PATH=/home/user/.local/bin:$PATH
 
4
  # Set up a new user named "user" with user ID 1000
5
  RUN useradd -m -u 1000 user
6
 
 
 
 
7
  # Install wkhtmltopdf and its dependencies as root
8
  USER root
9
  RUN apt-get update && apt-get install -y --no-install-recommends \
 
11
  && apt-get clean \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Switch to the "user" user
15
+ USER user
16
+
17
  # Set home to the user's home directory
18
  ENV HOME=/home/user \
19
  PATH=/home/user/.local/bin:$PATH