2025-05-06 16:35:27 +00:00
|
|
|
FROM golang:1.24.2-alpine3.21@sha256:7772cb5322baa875edd74705556d08f0eeca7b9c4b5367754ce3f2f00041ccee
|
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-02-25 21:33:24 +00:00
|
|
|
FROM alpine:3.21.3@sha256:a8560b36e8b8210634f77d9f7f9efd7ffa463e380b75e2e74aff4511df3ef88c
|
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
|