aboutsummaryrefslogtreecommitdiff
path: root/docker/dockerfile
diff options
context:
space:
mode:
authorKunoi Sayami <[email protected]>2021-11-01 23:13:09 +0800
committerGitHub <[email protected]>2021-11-01 23:13:09 +0800
commit9a3255c44047fcea27f6922639585aa5ddae32e6 (patch)
treeb1bff8073139f5a2643e4643ebb8fb7b7ed2ae0c /docker/dockerfile
parent1e6b0bcbde4cc242269997065e8ddab26ca5dbc6 (diff)
feat(build): [REBUILD] Enhance AUR dependencies resolve way (#11)
* refactor(script): Change the way of retrieve aur dependencies and gpg key * fix(docker): Fix docker not init pacman keys * feat(build): Add a way to reduce rebuild workload Signed-off-by: KunoiSayami <[email protected]>
Diffstat (limited to 'docker/dockerfile')
-rw-r--r--docker/dockerfile8
1 files changed, 7 insertions, 1 deletions
diff --git a/docker/dockerfile b/docker/dockerfile
index 4ae53aa..87fe5d1 100644
--- a/docker/dockerfile
+++ b/docker/dockerfile
@@ -1,6 +1,12 @@
FROM repobuildbase:latest
-RUN pacman --noconfirm --needed -Syu base-devel gnupg git
+RUN echo -e "\n[archlinuxcn]\nServer = https://repo.archlinuxcn.org/$$arch\n" >> /etc/pacman.conf
+
+RUN pacman-key --init
+
+RUN pacman --noconfirm --needed -Sy archlinuxcn-keyring
+
+RUN pacman --noconfirm --needed -Su base-devel gnupg git yay
RUN useradd -m build