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