capture/Dockerfile
Simon Vieille bd0781aec7
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
add makefile
update build params
2023-08-03 15:09:12 +02:00

16 lines
284 B
Docker

FROM golang:1.19 as builder
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN BUILD_DIR=/app make
FROM debian:stable-slim
RUN apt-get update && apt-get install -y ca-certificates
COPY --from=builder /app/capture /usr/bin/capture
ENTRYPOINT ["/usr/bin/capture"]