mirror of
https://github.com/mariocandela/beelzebub.git
synced 2025-07-01 18:47:26 -04:00
Feature: non-blocking tracer, changed license (#57)
* refactor tracer, introduce worker to avoid un-blocker trace strategy * fixed unit test and refactor dockerFile * buffered events chan * refactor yaml API core, initial web hook tracing implementations * added banner * changed license from GPL 3 to MIT * Edit readme
This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -9,27 +9,21 @@ RUN apk add git
|
||||
|
||||
WORKDIR /build
|
||||
|
||||
# Copy and download dependency using go mod
|
||||
COPY go.mod .
|
||||
COPY go.sum .
|
||||
# Download dependency
|
||||
COPY . .
|
||||
RUN go mod download
|
||||
|
||||
# Copy the code into the container
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
# Build
|
||||
RUN go build -o main .
|
||||
|
||||
# Move to /dist directory as the place for resulting binary folder
|
||||
WORKDIR /dist
|
||||
|
||||
# Copy binary from build to main folder
|
||||
RUN cp /build/main .
|
||||
|
||||
# Build a small image
|
||||
# Use scratch image as finally tiny container
|
||||
FROM scratch
|
||||
|
||||
# copy the ca-certificate.crt from the builder stage
|
||||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
|
||||
COPY --from=builder /dist/main /
|
||||
|
||||
|
Reference in New Issue
Block a user