mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Kept the Debian-based image at Bullseye. For #24517. # Checklist for submitter - [x] Changes file added for user-visible changes in `changes/`, `orbit/changes/` or `ee/fleetd-chrome/changes`. See [Changes files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/Committing-Changes.md#changes-files) for more information. - [x] Manual QA for all new/changed functionality: Validated builds (Docker and make) all work after this change, except for BitLocker (requires Windows).
17 lines
790 B
Docker
17 lines
790 B
Docker
FROM golang:1.23.4-alpine3.21@sha256:052793ea3143a235a5b2d815ccead8910cfe547b36a1f4c8b070015b89da5eab
|
|
ARG TAG
|
|
RUN apk update && apk add --no-cache git
|
|
RUN git clone -b $TAG --depth=1 --no-tags --progress --no-recurse-submodules https://github.com/fleetdm/fleet.git && cd /go/fleet/tools/mdm/migration/mdmproxy && go build .
|
|
|
|
FROM alpine:3.21@sha256:2c43f33bd1502ec7818bce9eea60e062d04eeadc4aa31cad9dabecb1e48b647b
|
|
LABEL maintainer="Fleet Developers"
|
|
|
|
RUN apk update && apk add --no-cache tini
|
|
COPY --from=0 /go/fleet/tools/mdm/migration/mdmproxy/mdmproxy /usr/bin/mdmproxy
|
|
ADD --chmod=0755 ./entrypoint.sh /usr/bin/entrypoint.sh
|
|
|
|
# Create mdmproxy group and user
|
|
RUN addgroup -S mdmproxy && adduser -S mdmproxy -G mdmproxy
|
|
USER mdmproxy
|
|
|
|
ENTRYPOINT ["/sbin/tini", "/usr/bin/entrypoint.sh"]
|