blob: 69dad202971dbc5b9e3e734be0d1c65e95d67c81 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
FROM golang:alpine AS build
WORKDIR /app
# install build dependencies
RUN apk add --no-cache build-base git && \
apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing yara-dev
# copy and build PMF
COPY . .
RUN make
FROM golang:alpine
LABEL org.opencontainers.image.source="https://github.com/jvoisin/php-malware-finder"
WORKDIR /app
# install dependencies
RUN apk add --no-cache libressl && \
apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing yara
# copy binary from build container
COPY --from=build /app/php-malware-finder /app
ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"]
|