support aarch64

This commit is contained in:
Sebastian Hugentobler 2020-08-19 12:22:01 +02:00
parent df50ccd6b3
commit 6350e3cb72
2 changed files with 38 additions and 4 deletions

View file

@ -1,11 +1,28 @@
FROM alpine:3.12
FROM alpine:3.12 AS builder
LABEL maintainer="Sebastian Hugentobler <sebastian@vanwa.ch>"
ARG TARGETPLATFORM
ENV S6_OVERLAY_VERSION=v2.0.0.1
ENV SHA256_amd64=df235428444be7737caf363e5dcfb58e3022fa611f5a27fe309ecd6fc1755cda
ENV SHA256_aarch64=5bc75be125409f0a22ba5a5b60f9150fa236bf858200809c91f72956326f8812
RUN apk --no-cache add \
bash
ADD fetch-platform-rootfs /
RUN ./fetch-platform-rootfs
RUN mkdir /overlay
RUN tar -xvf s6-overlay.tar.gz -C /overlay
FROM alpine:3.12
ENV LANG=en_US.UTF-8
RUN apk --no-cache add syslog-ng
RUN wget -qO- https://github.com/just-containers/s6-overlay/releases/download/$S6_OVERLAY_VERSION/s6-overlay-amd64.tar.gz | tar -xz -C /
COPY --from=builder /overlay /
RUN apk --no-cache add \
syslog-ng
RUN apk --no-cache upgrade