pengdaqian commited on
Commit
4edc435
1 Parent(s): 29e9907
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -1,9 +1,21 @@
1
  FROM clamav/clamav:stable
2
 
3
- WORKDIR /app
 
 
 
 
 
 
 
 
 
 
 
 
4
 
5
  COPY requirements.txt requirements.txt
6
- RUN pip3 install -r requirements.txt
7
 
8
  COPY . .
9
 
 
1
  FROM clamav/clamav:stable
2
 
3
+ RUN useradd -m -u 1000 user
4
+
5
+ USER user
6
+
7
+ ENV HOME=/home/user \
8
+ PATH=/home/user/.local/bin:$PATH
9
+
10
+ RUN apk update && apk add --no-cache \
11
+ python3 \
12
+ py3-pip \
13
+ && rm -rf /var/cache/apk/*
14
+
15
+ WORKDIR $HOME/app
16
 
17
  COPY requirements.txt requirements.txt
18
+ RUN pip3 install --no-cache-dir -r requirements.txt
19
 
20
  COPY . .
21