alpine-overlay/Dockerfile

32 lines
1.2 KiB
Docker
Raw Normal View History

FROM alpine:3.16
2022-10-05 16:57:46 +00:00
ARG ALPINE="v3.16"
RUN echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE}/main" > /etc/apk/repositories && \
echo "http://dl-cdn.alpinelinux.org/alpine/${ALPINE}/community" >> /etc/apk/repositories && \
echo "@edge-main http://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
echo "@edge-community http://dl-cdn.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
echo "@kubezero https://cdn.zero-downtime.net/alpine/${ALPINE}/kubezero" >> /etc/apk/repositories && \
wget -q -O /etc/apk/keys/stefan@zero-downtime.net-61bb6bfb.rsa.pub https://cdn.zero-downtime.net/alpine/stefan@zero-downtime.net-61bb6bfb.rsa.pub
2022-10-05 16:57:46 +00:00
RUN apk -U --no-cache upgrade && \
apk --no-cache add \
alpine-sdk \
lua-aports \
doas \
pigz \
xz
# gcc-gnat \
2022-10-05 16:57:46 +00:00
RUN adduser -D alpine && \
addgroup alpine abuild && \
echo "permit nopass :abuild" > /etc/doas.d/doas.conf && \
install -d -g abuild -m 775 /var/cache/distfiles && \
install -d -g abuild -m 775 /packages
2022-10-05 16:57:46 +00:00
COPY abuilder aarch64-toolchain.sh /usr/bin/
2022-10-05 16:57:46 +00:00
WORKDIR /home/alpine
2022-10-05 16:57:46 +00:00
USER alpine
ENTRYPOINT ["abuilder"]