-
Notifications
You must be signed in to change notification settings - Fork 521
Closed
Description
The docker file:
FROM golang:latest
WORKDIR /app
COPY --from=0 /app/server .
# Install Java (for file disarmament below) and the ClamAV virus scanner (https://www.clamav.net/)
# Refactored to troubleshoot package installation errors involving JRE
RUN apt-get update
RUN apt-get install default-jre -y
RUN apt-get install clamav -y
RUN apt-get install clamav-daemon -y
# Give ClamAV permissions to set up a Socket file,
# following instructions here: https://www.howtoforge.com/community/threads/clamd-will-not-start.34559/
RUN mkdir /var/run/clamav \
&& chown -R clamav.clamav /var/run/clamav
# Download the latest virus database
RUN freshclam
# Download the DocBleach file disarmament software (https://github.com/docbleach/DocBleach)
ADD https://github.com/docbleach/DocBleach/releases/download/v0.0.9/docbleach.jar /app/
# Expose port 8080 to the outside world
EXPOSE 8080
# Start the virus scanner and the go app server
CMD clamd && freshclam -d && ./server
The error I get:
#0 14.30 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
------
Dockerfile:40
--------------------
38 | RUN mkdir -p /usr/share/man/man1
39 | RUN apt-get update
40 | >>> RUN apt-get install default-jre -y
41 | RUN apt-get install clamav -y
42 | RUN apt-get install clamav-daemon -y
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get install default-jre -y" did not complete successfully: exit code: 100
There are no helpful answers out there and I am apparently one of the first few people on earth to encounter the error message above who's ever reported it on the internet. What could be going on here?
Metadata
Metadata
Assignees
Labels
No labels