feat: containerize
This commit is contained in:
parent
83bb72faac
commit
82a78da81b
10 changed files with 319 additions and 55 deletions
14
drone-black-box/Dockerfile
Normal file
14
drone-black-box/Dockerfile
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# Build stage
|
||||
FROM golang:1.22-bullseye AS builder
|
||||
WORKDIR /app
|
||||
COPY go.mod ./
|
||||
RUN go mod download
|
||||
COPY . .
|
||||
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o blackbox
|
||||
|
||||
# Run stage
|
||||
FROM gcr.io/distroless/base-debian12
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/blackbox /app/blackbox
|
||||
EXPOSE 3000
|
||||
ENTRYPOINT ["/app/blackbox"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue