Add x86_64 Dockerfile
This commit is contained in:
parent
bf666b857a
commit
babe6a2817
6 changed files with 160 additions and 0 deletions
26
Dockerfile.x86_64
Normal file
26
Dockerfile.x86_64
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM archlinux:latest
|
||||
|
||||
WORKDIR /archlinux
|
||||
|
||||
RUN mkdir -p /archlinux/rootfs
|
||||
|
||||
COPY pacstrap-docker /archlinux/
|
||||
COPY rootfs/archlinux/etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist
|
||||
|
||||
RUN ./pacstrap-docker /archlinux/rootfs \
|
||||
bash sed gzip pacman base base-devel
|
||||
|
||||
# Remove current pacman database, likely outdated very soon
|
||||
RUN rm rootfs/var/lib/pacman/sync/*
|
||||
|
||||
FROM scratch
|
||||
COPY --from=0 /archlinux/rootfs/ /
|
||||
COPY rootfs/archlinux/ /
|
||||
|
||||
ENV LANG=en_US.UTF-8
|
||||
|
||||
RUN locale-gen
|
||||
RUN pacman-key --init
|
||||
RUN pacman-key --populate archlinux
|
||||
|
||||
CMD ["/usr/bin/bash"]
|
1
rootfs/archlinux/etc/locale.conf
Normal file
1
rootfs/archlinux/etc/locale.conf
Normal file
|
@ -0,0 +1 @@
|
|||
LANG=en_US.UTF-8
|
1
rootfs/archlinux/etc/locale.gen
Normal file
1
rootfs/archlinux/etc/locale.gen
Normal file
|
@ -0,0 +1 @@
|
|||
en_US.UTF-8 UTF-8
|
110
rootfs/archlinux/etc/pacman.d/mirrorlist
Normal file
110
rootfs/archlinux/etc/pacman.d/mirrorlist
Normal file
|
@ -0,0 +1,110 @@
|
|||
################################################################################
|
||||
################# Arch Linux mirrorlist generated by Reflector #################
|
||||
################################################################################
|
||||
|
||||
# With: reflector --latest 100 --protocol https --protocol http --sort rate --save /etc/pacman.d/mirrorlist
|
||||
# When: 2020-04-10 05:05:44 UTC
|
||||
# From: https://www.archlinux.org/mirrors/status/json/
|
||||
# Retrieved: 2020-04-10 05:05:26 UTC
|
||||
# Last Check: 2020-04-10 04:49:30 UTC
|
||||
|
||||
Server = https://ger.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://mirror.osbeck.com/archlinux/$repo/os/$arch
|
||||
Server = https://arch.jensgutermuth.de/$repo/os/$arch
|
||||
Server = https://mirror.orbit-os.com/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.netcologne.de/archlinux/$repo/os/$arch
|
||||
Server = https://packages.oth-regensburg.de/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.celianvdb.fr/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.reisenbauer.ee/archlinux/$repo/os/$arch
|
||||
Server = http://arch.jensgutermuth.de/$repo/os/$arch
|
||||
Server = https://mirrors.n-ix.net/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.n-ix.net/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.ubrco.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.netcologne.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.orbit-os.com/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
|
||||
Server = https://mirror.oldsql.cc/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.wtnet.de/arch/$repo/os/$arch
|
||||
Server = https://ftp.sh.cvut.cz/arch/$repo/os/$arch
|
||||
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
|
||||
Server = http://packages.oth-regensburg.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.celianvdb.fr/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.reisenbauer.ee/archlinux/$repo/os/$arch
|
||||
Server = http://archlinux.mailtunnel.eu/$repo/os/$arch
|
||||
Server = https://mirror.cyberbits.eu/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.koddos.net/archlinux/$repo/os/$arch
|
||||
Server = https://archlinux.mailtunnel.eu/$repo/os/$arch
|
||||
Server = http://archlinux.honkgong.info/$repo/os/$arch
|
||||
Server = https://mirror.thekinrar.fr/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.koddos.net/archlinux/$repo/os/$arch
|
||||
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.oldsql.cc/archlinux/$repo/os/$arch
|
||||
Server = https://archimonde.ts.si/archlinux/$repo/os/$arch
|
||||
Server = https://dist-mirror.fem.tu-ilmenau.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.ubrco.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.f4st.host/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.niyawe.de/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.sh.cvut.cz/arch/$repo/os/$arch
|
||||
Server = https://mirror.dkm.cz/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.mijn.host/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.mijn.host/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.niyawe.de/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.wtnet.de/arch/$repo/os/$arch
|
||||
Server = https://archlinux.beccacervello.it/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.uni-hannover.de/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.uni-plovdiv.net/archlinux/$repo/os/$arch
|
||||
Server = http://archlinux.uk.mirror.allworldit.com/archlinux/$repo/os/$arch
|
||||
Server = http://archimonde.ts.si/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.cyberbits.eu/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.pseudoform.org/$repo/os/$arch
|
||||
Server = https://arch.unixpeople.org/$repo/os/$arch
|
||||
Server = http://mirror.dkm.cz/archlinux/$repo/os/$arch
|
||||
Server = https://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.chaoticum.net/arch/$repo/os/$arch
|
||||
Server = https://mirrors.ims.nksc.lt/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.nluug.nl/os/Linux/distr/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.pseudoform.org/$repo/os/$arch
|
||||
Server = http://mirrors.uni-plovdiv.net/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.manchester.m247.com/arch-linux/$repo/os/$arch
|
||||
Server = https://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.srv.fail/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.myrveln.se/pub/linux/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.acc.umu.se/mirror/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.neuf.no/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.neuf.no/archlinux/$repo/os/$arch
|
||||
Server = https://archlinux.dynamict.se/$repo/os/$arch
|
||||
Server = http://archlinux.thaller.ws/$repo/os/$arch
|
||||
Server = https://archlinux.thaller.ws/$repo/os/$arch
|
||||
Server = http://mirrors.ims.nksc.lt/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.atviras.lt/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.atviras.lt/archlinux/$repo/os/$arch
|
||||
Server = http://archlinux.dynamict.se/$repo/os/$arch
|
||||
Server = https://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
|
||||
Server = https://mirror.rol.ru/archlinux/$repo/os/$arch
|
||||
Server = http://arch.mirror.far.fi/$repo/os/$arch
|
||||
Server = http://mirror.rol.ru/archlinux/$repo/os/$arch
|
||||
Server = https://arch.mirror.constant.com/$repo/os/$arch
|
||||
Server = http://mirror.yandex.ru/archlinux/$repo/os/$arch
|
||||
Server = http://arch.mirror.constant.com/$repo/os/$arch
|
||||
Server = https://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
|
||||
Server = https://arlm.tyzoid.com/$repo/os/$arch
|
||||
Server = https://arch.hu.fo/archlinux/$repo/os/$arch
|
||||
Server = https://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
|
||||
Server = http://mirrors.lug.mtu.edu/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
|
||||
Server = https://ind.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = http://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
|
||||
Server = https://mirror.dc02.hackingand.coffee/arch/$repo/os/$arch
|
||||
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.sergal.org/archlinux/$repo/os/$arch
|
||||
Server = https://jpn.mirror.pkgbuild.com/$repo/os/$arch
|
||||
Server = https://mirror.sergal.org/archlinux/$repo/os/$arch
|
||||
Server = http://archlinux.za.mirror.allworldit.com/archlinux/$repo/os/$arch
|
||||
Server = http://arch.hu.fo/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.lty.me/archlinux/$repo/os/$arch
|
||||
Server = https://mirrors.neusoft.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.tku.edu.tw/Linux/ArchLinux/$repo/os/$arch
|
||||
Server = http://mirrors.tuna.tsinghua.edu.cn/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.iinet.net.au/pub/archlinux/$repo/os/$arch
|
||||
Server = http://mirror.internode.on.net/pub/archlinux/$repo/os/$arch
|
||||
Server = http://ftp.yzu.edu.tw/Linux/archlinux/$repo/os/$arch
|
|
@ -0,0 +1,11 @@
|
|||
[Trigger]
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Cleaning up package cache...
|
||||
Depends = coreutils
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/rm -rf /usr/share/man/
|
|
@ -0,0 +1,11 @@
|
|||
[Trigger]
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Type = Package
|
||||
Target = *
|
||||
|
||||
[Action]
|
||||
Description = Cleaning up package cache...
|
||||
Depends = coreutils
|
||||
When = PostTransaction
|
||||
Exec = /usr/bin/rm -rf /var/cache/pacman/pkg
|
Loading…
Reference in a new issue