Spaces:
Sleeping
Sleeping
File size: 750 Bytes
cb34746 cba4ee0 78f8a0c 0d1630d 78f8a0c 0d1630d 4edc435 0d1630d 01fb141 31d3477 01fb141 4edc435 cb34746 4edc435 cb34746 0d1630d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
FROM clamav/clamav:stable
RUN apk update && apk add --no-cache \
python3 \
py3-pip \
&& rm -rf /var/cache/apk/*
RUN mkdir -p /run/clamav
RUN chmod -R 777 /run/clamav
RUN mkdir -p /var/lib/clamav
RUN chmod -R 777 /var/lib/clamav
RUN clamd restart
RUN adduser --disabled-password --uid 1000 user
RUN chown user:user /var/lib/clamav/bytecode.cvd
RUN chown user:user /var/lib/clamav/daily.cvd
RUN chown user:user /var/lib/clamav/daily.cvd
RUN chown user:user /var/lib/clamav/main.cvd
RUN ll /var/lib/clamav
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY requirements.txt requirements.txt
RUN pip3 install --no-cache-dir -r requirements.txt
COPY . .
CMD ["sh", "-c", "python3 scan_main.py"] |