aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile-Hyperbola-v04
diff options
context:
space:
mode:
Diffstat (limited to 'Dockerfile-Hyperbola-v04')
-rw-r--r--Dockerfile-Hyperbola-v0430
1 files changed, 9 insertions, 21 deletions
diff --git a/Dockerfile-Hyperbola-v04 b/Dockerfile-Hyperbola-v04
index f89d46a..c63d99b 100644
--- a/Dockerfile-Hyperbola-v04
+++ b/Dockerfile-Hyperbola-v04
@@ -1,27 +1,15 @@
FROM scratch
-MAINTAINER Jesus E.
-
-# Set the $architecture ARG on your `docker build' command line with `--build-arg architecture=x86_64' or `i686'.
-ARG architecture
ADD bootstrap.tar.gz /
-RUN \
-# First
-pacman-key --init \
-&& pacman-key --populate hyperbola \
-# Another bit of a hack, until Hyperbola bootstrap tarballs start including `sed' package, which is required by
-# `rankmirrors', which comes with `pacman' package, while that one doesn't depend on `sed'. (Note to self: ask the
-# Hyperbola devs about this; `locale-gen' uses `sed' too). Again, lucky it has very little deps.
-&& sed -i "s/^Architecture = auto$/Architecture = $architecture/" /etc/pacman.conf \
-# `locale-gen' needs `gzip' (via `localedef', which works on /usr/share/i18n/charmaps/*.gz), `paccache' needs `awk'.
-# Update the system BTW.
-&& pacman -Su --noconfirm --noprogressbar --quiet gzip awk \
-# Remove the last leftovers of the initial dirty `haveged' install.
-&& paccache -r -k0 \
-&& echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen \
-&& locale-gen \
-&& echo 'LANG=en_US.UTF-8' > /etc/locale.conf \
-&& pacman -Scc --noconfirm
+RUN ldconfig
+
+RUN pacman-key --init && pacman-key --populate hyperbola
+
+RUN pacman -Su --noconfirm --noprogressbar --quiet gzip awk
+
+RUN pacman -Scc --noconfirm && paccache -r -k0
ENV LANG en_US.UTF-8
+
+CMD ["/bin/bash"]