2025-11-03 15:47:07 +00:00
|
|
|
FROM golang:1.25.3-alpine3.21@sha256:0c9f3e09a50a6c11714dbc37a6134fd0c474690030ed07d23a61755afd3a812f
|
2022-03-21 17:18:21 +00:00
|
|
|
ARG TAG
|
2024-05-28 21:33:55 +00:00
|
|
|
RUN apk add git
|
2022-11-04 16:20:38 +00:00
|
|
|
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 .
|
2022-06-14 15:39:49 +00:00
|
|
|
|
2025-10-28 16:24:05 +00:00
|
|
|
FROM alpine:3.22.2@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412
|
2024-05-28 21:33:55 +00:00
|
|
|
LABEL maintainer="Fleet Developers"
|
|
|
|
|
|
|
|
|
|
# Create FleetDM group and user
|
|
|
|
|
RUN addgroup -S osquery-perf && adduser -S osquery-perf -G osquery-perf
|
2023-10-13 02:09:17 +00:00
|
|
|
|
2022-06-14 15:39:49 +00:00
|
|
|
COPY --from=0 /go/fleet/cmd/osquery-perf/osquery-perf /go/osquery-perf
|
2024-05-28 21:33:55 +00:00
|
|
|
COPY --from=0 /go/fleet/server/vulnerabilities/testdata/ /go/fleet/server/vulnerabilities/testdata/
|
|
|
|
|
RUN set -eux; \
|
|
|
|
|
apk update; \
|
|
|
|
|
apk upgrade
|
|
|
|
|
|
|
|
|
|
USER osquery-perf
|