docker-arch/base/Dockerfile

23 lines
361 B
Docker
Raw Normal View History

2022-02-16 13:16:50 +00:00
FROM archlinux AS bootstrap
2021-10-09 12:16:01 +00:00
2022-02-16 13:44:05 +00:00
COPY setup.sh /tmp/setup.sh
2022-01-11 22:23:11 +00:00
COPY resolv.conf /etc/resolv.conf
2021-10-31 17:42:03 +00:00
COPY mirrorlist /etc/pacman.d/mirrorlist
2021-10-11 15:56:18 +00:00
2022-02-16 13:44:05 +00:00
RUN bash /tmp/setup.sh && \
rm -rf /tmp/*
2021-10-09 13:30:21 +00:00
2022-02-16 13:44:05 +00:00
COPY pacman.conf /etc/pacman.conf
2021-10-31 17:42:03 +00:00
COPY sudoers /etc/sudoers
2022-02-16 13:16:50 +00:00
# Create final image
FROM scratch
COPY --from=bootstrap / /
RUN ldconfig
ENV LANG=en_US.UTF-8
2022-02-16 13:44:05 +00:00
2022-02-16 13:16:50 +00:00
CMD ["/usr/bin/bash"]