Files
Lazytainer/Dockerfile
dependabot[bot] 376c170406 Bump golang from 1.22.3-alpine3.19 to 1.22.4-alpine3.19 (#57)
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>
2024-06-06 00:51:15 -07:00

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" ]