mirror of
https://github.com/vmorganp/Lazytainer.git
synced 2025-12-21 13:23:02 +01:00
Bumps golang from 1.22.3-alpine3.19 to 1.22.4-alpine3.19. --- updated-dependencies: - dependency-name: golang dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
16 lines
478 B
Docker
16 lines
478 B
Docker
# syntax = docker/dockerfile:latest
|
|
FROM golang:1.22.4-alpine3.19 as build
|
|
RUN apk add --update build-base gcc wget git libpcap-dev
|
|
WORKDIR /app
|
|
COPY src/* /app/
|
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
|
--mount=type=cache,target=/root/.cache/go-build \
|
|
go mod tidy; \
|
|
CGO_ENABLED=1 go build -trimpath -ldflags="-s -w" -o lazytainer ./...
|
|
|
|
FROM alpine
|
|
RUN apk add --update libpcap-dev
|
|
COPY --from=build /app/lazytainer /app/lazytainer
|
|
ENTRYPOINT [ "./app/lazytainer" ]
|
|
|