2024-10-12 03:12:21 +00:00
|
|
|
FROM archlinux:latest
|
|
|
|
|
2024-10-12 08:55:37 +00:00
|
|
|
COPY ["./startup.sh","/"]
|
|
|
|
|
2024-10-12 03:12:21 +00:00
|
|
|
RUN echo 'Server = https://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch' | \
|
|
|
|
cat - /etc/pacman.d/mirrorlist > /tmp/mirrorlist && \
|
|
|
|
mv /tmp/mirrorlist /etc/pacman.d/mirrorlist &&\
|
|
|
|
pacman -Syy --noconfirm &&\
|
|
|
|
pacman -Syu --noconfirm &&\
|
2024-10-12 08:55:37 +00:00
|
|
|
pacman -Syu --noconfirm gdb gcc cmake make xmake vim clang glances htop which git openssh &&\
|
|
|
|
chmod +x /startup.sh
|
|
|
|
|
|
|
|
COPY ["./sshd_config","/etc/ssh/"]
|
2024-10-12 03:12:21 +00:00
|
|
|
|
|
|
|
LABEL "org.opencontainers.image.authors"="Santiago Torres-Arias <santiago@archlinux.org> (@SantiagoTorres), Christian Rebischke <Chris.Rebischke@archlinux.org> (@shibumi), Justin Kromlinger <hashworks@archlinux.org> (@hashworks), ZengZiYu <zengtudor@outlook.com>(@Zengtudor)"
|
|
|
|
ENV "TZ"="Asia/Shanghai"
|
|
|
|
|
|
|
|
EXPOSE 22
|
2024-10-12 08:55:37 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/startup.sh"]
|