switch malware-scanner to image
This commit is contained in:
parent
485a8e9b45
commit
ccb271a3d7
|
@ -26,19 +26,15 @@ services:
|
||||||
ipv4_address: 10.10.10.100
|
ipv4_address: 10.10.10.100
|
||||||
|
|
||||||
malware-scanner:
|
malware-scanner:
|
||||||
build:
|
image: skynetlabs/malware-scanner
|
||||||
context: ./docker/malware-scanner
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
args:
|
|
||||||
branch: main
|
|
||||||
container_name: malware-scanner
|
container_name: malware-scanner
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
- CLAMAV_IP=${CLAMAV_IP:-10.10.10.100}
|
- CLAMAV_IP=10.10.10.100
|
||||||
- CLAMAV_PORT=${CLAMAV_PORT:-3310}
|
- CLAMAV_PORT=3310
|
||||||
- BLOCKER_IP=10.10.10.110
|
- BLOCKER_IP=10.10.10.110
|
||||||
- BLOCKER_PORT=4000
|
- BLOCKER_PORT=4000
|
||||||
expose:
|
expose:
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
FROM golang:1.17.3
|
|
||||||
LABEL maintainer="SkynetLabs <devs@siasky.net>"
|
|
||||||
|
|
||||||
ENV GOOS linux
|
|
||||||
ENV GOARCH amd64
|
|
||||||
|
|
||||||
ARG branch=main
|
|
||||||
|
|
||||||
WORKDIR /root
|
|
||||||
|
|
||||||
RUN git clone --single-branch --branch ${branch} https://github.com/SkynetLabs/malware-scanner.git && \
|
|
||||||
cd malware-scanner && \
|
|
||||||
go mod download && \
|
|
||||||
make release
|
|
||||||
|
|
||||||
ENV SKYNET_DB_HOST="localhost"
|
|
||||||
ENV SKYNET_DB_PORT="27017"
|
|
||||||
ENV SKYNET_DB_USER="username"
|
|
||||||
ENV SKYNET_DB_PASS="password"
|
|
||||||
ENV CLAMAV_IP=127.0.0.1
|
|
||||||
ENV CLAMAV_PORT=3310
|
|
||||||
|
|
||||||
ENTRYPOINT ["malware-scanner"]
|
|
Reference in New Issue