16 lines
296 B
Docker
16 lines
296 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-linux-amd64 /usr/bin/capture
|
|
|
|
ENTRYPOINT ["/usr/bin/capture"]
|