diff options
| author | Mathieu Deous | 2023-01-05 22:42:39 +0100 |
|---|---|---|
| committer | GitHub | 2023-01-05 22:42:39 +0100 |
| commit | b21d716cbb223442b574907bd55a38e955a030d1 (patch) | |
| tree | c36168850449262f3e45293bdfddc1b08de26799 /Dockerfile | |
| parent | 55b85b9cac07a1c95195e00d038e893112f9c879 (diff) | |
Fix docker build (#124)
Diffstat (limited to '')
| -rw-r--r-- | Dockerfile | 10 |
1 files changed, 5 insertions, 5 deletions
| @@ -1,9 +1,9 @@ | |||
| 1 | FROM golang:alpine as build | 1 | FROM golang:alpine AS build |
| 2 | WORKDIR /app | 2 | WORKDIR /app |
| 3 | 3 | ||
| 4 | # install build dependencies | 4 | # install build dependencies |
| 5 | RUN apk add --no-cache build-base git && \ | 5 | RUN 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 |
| 9 | COPY . . | 9 | COPY . . |
| @@ -14,10 +14,10 @@ LABEL org.opencontainers.image.source="https://github.com/jvoisin/php-malware-fi | |||
| 14 | WORKDIR /app | 14 | WORKDIR /app |
| 15 | 15 | ||
| 16 | # install dependencies | 16 | # install dependencies |
| 17 | RUN apk add --no-cache libressl | 17 | RUN 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 |
| 20 | COPY --from=build /usr/local/lib /usr/lib | ||
| 21 | COPY --from=build /app/php-malware-finder /app | 21 | COPY --from=build /app/php-malware-finder /app |
| 22 | 22 | ||
| 23 | ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"] | 23 | ENTRYPOINT ["/app/php-malware-finder", "-v", "-a", "-c", "/data"] |
