alpine-repo/Dockerfile

16 lines
494 B
Docker

FROM alpine:edge
RUN echo -e "http://alpine.sakamoto.pl/alpine/edge/main\nhttp://alpine.sakamoto.pl/alpine/edge/community\nhttp://alpine.sakamoto.pl/alpine/edge/testing" > /etc/apk/repositories \
&& apk update && apk add micro abuild atools sudo && adduser -G abuild -D -u 1001 domi && echo "domi ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers
VOLUME /aports
USER domi
COPY ./.abuild /home/domi/.abuild
USER root
RUN cp /home/domi/.abuild/ci-6061e1c0.rsa.pub /etc/apk/keys/
USER domi
CMD ["ash"]