From 52c280c2c5e0c39aca5d5df22e172bde3eb7a1bb Mon Sep 17 00:00:00 2001 From: Kevin Lyda <kevin@ie.suberic.net> Date: Tue, 2 May 2017 10:59:25 +0100 Subject: [PATCH] Fix docker build issues. --- Dockerfile | 6 ++++-- app/init | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c4c5cd..4e0f403 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,10 @@ LABEL maintainer="Kevin Lyda <lyda@gitlab.com>" EXPOSE 80 22 -RUN DEBIAN_FRONTEND=noninteractive \ - apt-get install curl openssh-server ca-certificates postfix +RUN apt-get update \ + && DEBIAN_FRONTEND=noninteractive \ + apt-get install -y curl openssh-server ca-certificates postfix \ + && apt-get clean ADD app /app ENTRYPOINT ["/app/init"] diff --git a/app/init b/app/init index 3a543d3..5c84a15 100755 --- a/app/init +++ b/app/init @@ -11,7 +11,8 @@ EOF exit 1 fi +apt-get update curl -s $base_url$EDITION/script.deb.sh | bash -apt-get install gitlab-${EDITION}=${VERSION}-${EDITION}.0 +apt-get install -y gitlab-${EDITION}=${VERSION}-${EDITION}.0 gitlab-ctl reconfigure exec bash -- GitLab