Merge branch 'develop'
This commit is contained in:
commit
174a06e8b5
|
@ -1,12 +1,15 @@
|
||||||
FROM golang:1.19 as builder
|
FROM golang:1.19 as builder
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
COPY go.mod go.sum ./
|
||||||
|
RUN go mod download
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN go build
|
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/capture
|
||||||
|
|
||||||
FROM debian:stable-slim
|
FROM debian:stable-slim
|
||||||
|
|
||||||
RUN apt-get update && apt-get install ca-certificates -y
|
RUN apt-get update && apt-get install -y ca-certificates
|
||||||
COPY --from=builder /src/capture /usr/bin/capture
|
COPY --from=builder /app/capture /usr/bin/capture
|
||||||
|
|
||||||
ENTRYPOINT ["/usr/bin/capture"]
|
ENTRYPOINT ["/usr/bin/capture"]
|
||||||
|
|
Loading…
Reference in a new issue