Skip to content

Commit

Permalink
wip: add image target
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Günzler <robertg@balena.io>
  • Loading branch information
robertgzr committed Aug 5, 2020
1 parent 30e5b34 commit 20309cf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Dockerfile
Expand Up @@ -331,3 +331,26 @@ COPY --from=build-cross /build/bundles/ /
FROM dev AS final
# Upload docker source
COPY . /go/src/github.com/docker/docker


# balena-engine minimal image target
FROM --platform=${TARGETPLATFORM} alpine:3 AS image

ARG MAINTAINER="Robert Günzler <robertg@balena.io>"
ARG SOURCE="https://github.com/balena-os/balena-engine"
ARG VERSION
LABEL \
maintainer=${MAINTAINER} \
org.opencontainers.image.source=${SOURCE} \
org.opencontainers.image.version=${VERSION}

RUN groupadd -r balena-engine
RUN apk add --no-cache \
curl \
htop \
iptables \
openssl \
util-linux

ARG TARGETPLATFORM
COPY --from=cross /cross/${TARGETPLATFORM}/* /usr/local/bin/

0 comments on commit 20309cf

Please sign in to comment.