Added chages & cron job
All checks were successful
ci/woodpecker/manual/woodpecker Pipeline was successful

This commit is contained in:
Jef Roosens 2022-10-19 22:04:20 +02:00
parent b0a6e227f0
commit b76a5ce8d2
Signed by: Jef Roosens
GPG key ID: B75D4F293C7052DB
4 changed files with 31 additions and 21 deletions

View file

@ -1,6 +1,5 @@
FROM alpine:3.15 AS bootstrapper
ARG TARGETARCH
ARG PACKAGE_GROUP=base
COPY files /files
RUN \
apk add arch-install-scripts pacman-makepkg curl && \
@ -20,7 +19,7 @@ RUN \
pacman-key --init && \
pacman-key --populate && \
mkdir /rootfs && \
/files/pacstrap-docker /rootfs $PACKAGE_GROUP && \
/files/pacstrap-docker /rootfs base-devel clang git && \
cp /etc/pacman.d/mirrorlist /rootfs/etc/pacman.d/mirrorlist && \
echo "en_US.UTF-8 UTF-8" > /rootfs/etc/locale.gen && \
echo "LANG=en_US.UTF-8" > /rootfs/etc/locale.conf && \
@ -29,11 +28,15 @@ RUN \
FROM scratch
COPY --from=bootstrapper /rootfs/ /
ENV LANG=en_US.UTF-8
ENV LANG=en_US.UTF-8 \
CC=clang \
CXX=clang++
RUN \
ln -sf /usr/lib/os-release /etc/os-release && \
pacman-key --init && \
pacman-key --populate && \
rm -rf /etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,gnupg.S.}*
rm -rf /etc/pacman.d/gnupg/{openpgp-revocs.d/,private-keys-v1.d/,pubring.gpg~,gnupg.S.}* && \
# Enable LTO by default \
sed -i 's/!lto/lto/' /etc/makepkg.conf
CMD ["/usr/bin/bash"]