Spaces:
Runtime error
Runtime error
pengdaqian
commited on
Commit
·
29e9907
1
Parent(s):
effde48
change
Browse files- Dockerfile +0 -11
Dockerfile
CHANGED
@@ -1,10 +1,5 @@
|
|
1 |
FROM clamav/clamav:stable
|
2 |
|
3 |
-
RUN apk update && apk add --no-cache \
|
4 |
-
python3 \
|
5 |
-
py3-pip \
|
6 |
-
&& rm -rf /var/cache/apk/*
|
7 |
-
|
8 |
WORKDIR /app
|
9 |
|
10 |
COPY requirements.txt requirements.txt
|
@@ -12,10 +7,4 @@ RUN pip3 install -r requirements.txt
|
|
12 |
|
13 |
COPY . .
|
14 |
|
15 |
-
RUN mkdir -p /var/run/clamav
|
16 |
-
RUN chown -R clamav /var/run/clamav
|
17 |
-
RUN chown -R clamav /var/lib/clamav
|
18 |
-
RUN touch /tmp/clamd.pid
|
19 |
-
RUN chown -R clamav /tmp/clamd.pid
|
20 |
-
|
21 |
CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
|
|
|
1 |
FROM clamav/clamav:stable
|
2 |
|
|
|
|
|
|
|
|
|
|
|
3 |
WORKDIR /app
|
4 |
|
5 |
COPY requirements.txt requirements.txt
|
|
|
7 |
|
8 |
COPY . .
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
CMD ["sh", "-c", "clamd restart && python3 scan_main.py"]
|