mirror of
https://github.com/fleetdm/fleet
synced 2026-04-21 13:37:30 +00:00
## #30730 - Update Go version - Update the docs for this process - Confirmed `fleet`, `fleetctl`, and related docker images build successfully - Note that failing tests are unrelated: see [Slack thread](https://fleetdm.slack.com/archives/C019WG4GH0A/p1752175318523689) --------- Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
18 lines
770 B
Docker
18 lines
770 B
Docker
FROM golang:1.24.5-alpine3.21@sha256:933e5a0829a1f97cc99917e3b799ebe450af30236f5a023a3583d26b5ef9166f
|
|
ARG TAG
|
|
RUN apk add git
|
|
RUN git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git && cd /go/fleet/cmd/osquery-perf/ && go build .
|
|
|
|
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
|
|
LABEL maintainer="Fleet Developers"
|
|
|
|
# Create FleetDM group and user
|
|
RUN addgroup -S osquery-perf && adduser -S osquery-perf -G osquery-perf
|
|
|
|
COPY --from=0 /go/fleet/cmd/osquery-perf/osquery-perf /go/osquery-perf
|
|
COPY --from=0 /go/fleet/server/vulnerabilities/testdata/ /go/fleet/server/vulnerabilities/testdata/
|
|
RUN set -eux; \
|
|
apk update; \
|
|
apk upgrade
|
|
|
|
USER osquery-perf
|