From 88b73bddd75409d267c3ae853a4646295a08011d Mon Sep 17 00:00:00 2001 From: zeus Date: Fri, 12 Nov 2021 17:19:23 +0200 Subject: [PATCH] add setup.sh --- Dockerfile | 6 ++++++ repositories | 2 ++ setup.sh | 3 +++ 3 files changed, 11 insertions(+) create mode 100644 repositories diff --git a/Dockerfile b/Dockerfile index 321ff72..9108dea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,8 +19,14 @@ RUN addgroup -S node \ COPY \ setup.sh \ extrapackages \ + repositories \ /root/ +# -------- next line is in setup.sh ------ +# ----------edit if not alpine ---------- +# copy repositories /etc/apk/repositories +# -------------------------------------- + RUN /root/setup.sh diff --git a/repositories b/repositories new file mode 100644 index 0000000..8c72039 --- /dev/null +++ b/repositories @@ -0,0 +1,2 @@ +http://dl-cdn.alpinelinux.org/alpine/v3.2/main @community http://dl-cdn.alpinelinux.org/alpine/edge/community + diff --git a/setup.sh b/setup.sh index 7335329..16ab276 100755 --- a/setup.sh +++ b/setup.sh @@ -24,6 +24,9 @@ retry() { done } +# alpine edit 4 ubuntu +cp /root/repositories /etc/apk/repositories + echo "==> Install system packages" apk --no-cache add \ bash \