2023-06-06 22:07:35 +02:00
|
|
|
FROM golang:1.19 as builder
|
2023-06-06 13:39:50 +02:00
|
|
|
|
2023-06-06 22:07:35 +02:00
|
|
|
WORKDIR /src
|
2023-06-09 11:31:49 +02:00
|
|
|
COPY go.mod go.sum ./
|
|
|
|
RUN go mod download
|
|
|
|
|
2023-06-06 22:07:35 +02:00
|
|
|
COPY . .
|
2023-08-03 15:09:12 +02:00
|
|
|
RUN BUILD_DIR=/app make
|
2023-06-06 13:39:50 +02:00
|
|
|
|
2023-06-06 22:07:35 +02:00
|
|
|
FROM debian:stable-slim
|
2023-06-06 13:39:50 +02:00
|
|
|
|
2023-06-09 11:31:49 +02:00
|
|
|
RUN apt-get update && apt-get install -y ca-certificates
|
2023-08-03 15:37:42 +02:00
|
|
|
COPY --from=builder /app/capture-linux-amd64 /usr/bin/capture
|
2023-06-06 13:39:50 +02:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/capture"]
|