Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
cd62dde
1
Parent(s):
99cec43
change
Browse files- Dockerfile +5 -7
Dockerfile
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
FROM clamav/clamav:stable
|
2 |
|
3 |
-
RUN
|
4 |
-
python3 \
|
5 |
-
py3-pip \
|
6 |
-
useradd \
|
7 |
-
&& rm -rf /var/cache/apk/* \
|
8 |
-
|
9 |
-
RUN useradd -m -u 1000 user
|
10 |
|
11 |
USER user
|
12 |
|
13 |
ENV HOME=/home/user \
|
14 |
PATH=/home/user/.local/bin:$PATH
|
15 |
|
|
|
|
|
|
|
|
|
16 |
|
17 |
WORKDIR $HOME/app
|
18 |
|
|
|
1 |
FROM clamav/clamav:stable
|
2 |
|
3 |
+
RUN adduser --uid 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 |
|