20 lines
671 B
Docker
20 lines
671 B
Docker
FROM docker.io/alpine:3.18
|
|
RUN apk update && apk upgrade
|
|
RUN apk add alpine-sdk gcc abuild openssl sudo bash --no-cache
|
|
|
|
COPY entrypoint.sh /home/apkbuild/entrypoint.sh
|
|
|
|
RUN echo "%wheel ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
|
RUN adduser -h /home/apkbuild -u 1001 -s /bin/bash -D apkbuild && \
|
|
adduser apkbuild wheel && \
|
|
adduser apkbuild abuild && \
|
|
install -d /build -o apkbuild && \
|
|
install -d /repo -o apkbuild && \
|
|
install -d /home/apkbuild/.abuild -o apkbuild && \
|
|
install -d /home/apkbuild -o apkbuild && \
|
|
chmod +x /home/apkbuild/entrypoint.sh
|
|
|
|
USER apkbuild
|
|
WORKDIR /home/apkbuild
|
|
|
|
ENTRYPOINT [ "/home/apkbuild/entrypoint.sh" ]
|