2024-12-09 17:06:07 +00:00
|
|
|
FROM golang:1.23.4-alpine3.21@sha256:052793ea3143a235a5b2d815ccead8910cfe547b36a1f4c8b070015b89da5eab
|
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
|
|
|
|
2024-12-09 17:06:07 +00:00
|
|
|
FROM alpine:3.21@sha256:2c43f33bd1502ec7818bce9eea60e062d04eeadc4aa31cad9dabecb1e48b647b
|
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
|