summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMathieu Deous2023-01-05 22:42:39 +0100
committerGitHub2023-01-05 22:42:39 +0100
commitb21d716cbb223442b574907bd55a38e955a030d1 (patch)
treec36168850449262f3e45293bdfddc1b08de26799 /Dockerfile
parent55b85b9cac07a1c95195e00d038e893112f9c879 (diff)
Fix docker build (#124)
Diffstat (limited to '')
-rw-r--r--Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index f7d5bc9..69dad20 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,9 @@
1FROM golang:alpine as build 1FROM golang:alpine AS build
2WORKDIR /app 2WORKDIR /app
3 3
4# install build dependencies 4# install build dependencies
5RUN apk add --no-cache build-base git && \ 5RUN apk add --no-cache build-base git && \
6 apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing yara-dev 6 apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing yara-dev
7 7
8# copy and build PMF 8# copy and build PMF
9COPY . . 9COPY . .
@@ -14,10 +14,10 @@ LABEL org.opencontainers.image.source="https://github.com/jvoisin/php-malware-fi
14WORKDIR /app 14WORKDIR /app
15 15
16# install dependencies 16# install dependencies
17RUN apk add --no-cache libressl 17RUN apk add --no-cache libressl && \
18 apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing yara
18 19
19# copy files from build container 20# copy binary from build container
20COPY --from=build /usr/local/lib /usr/lib
21COPY --from=build /app/php-malware-finder /app 21COPY --from=build /app/php-malware-finder /app
22 22
23ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"] 23ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"]