Skip to content

Commit 272acf7

Browse files
author
Christopher Schinnerl
authored
Merge pull request #13 from SkynetLabs/include-dockerfile-and-dependabot
include dockerfile and dependabot
2 parents f70a627 + 38121cf commit 272acf7

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: docker
4+
directory: "/"
5+
schedule:
6+
interval: weekly

Dockerfile

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
FROM golang:1.17.7 as builder
2+
LABEL maintainer="SkynetLabs <[email protected]>"
3+
4+
WORKDIR /root
5+
6+
COPY api api
7+
COPY clamav clamav
8+
COPY database database
9+
COPY scanner scanner
10+
COPY scanner scanner
11+
COPY go.mod go.sum main.go Makefile ./
12+
13+
RUN go mod download && make release
14+
15+
FROM golang:1.17.7-alpine
16+
LABEL maintainer="SkynetLabs <[email protected]>"
17+
18+
COPY --from=builder /go/bin/malware-scanner /go/bin/malware-scanner
19+
20+
ENTRYPOINT ["malware-scanner"]

README.md

+18
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,21 @@ MalwareScanner is a tool for scanning skylinks for malware.
55
The service exposes a REST endpoint for reporting skylinks and takes care internally to queue them up and scan them.
66
Once scanned, the skylinks are removed from the database and only their hashes are preserved, as to not keep any
77
pointers to illegal content.
8+
9+
## Running malware-scanner
10+
11+
Pull latest image from https://hub.docker.com/repository/docker/skynetlabs/malware-scanner
12+
13+
### Required env variables
14+
15+
Skynet Portal Mongo Database Connection:
16+
17+
- SKYNET_DB_HOST
18+
- SKYNET_DB_PORT
19+
- SKYNET_DB_USER
20+
- SKYNET_DB_PASS
21+
22+
ClamAV:
23+
24+
- CLAMAV_IP
25+
- CLAMAV_PORT

0 commit comments

Comments
 (0)