From c42dfc80b83168e45d1511b5eaac18f9954a2d9e Mon Sep 17 00:00:00 2001 From: Lan Tian Date: Mon, 1 Jun 2020 23:20:29 +0800 Subject: [PATCH] frontend: add git to docker image for go get --- frontend/Dockerfile.amd64 | 4 ++-- frontend/Dockerfile.arm32v7 | 4 ++-- frontend/Dockerfile.arm64v8 | 4 ++-- frontend/Dockerfile.i386 | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/Dockerfile.amd64 b/frontend/Dockerfile.amd64 index 703bff5..9c081ce 100644 --- a/frontend/Dockerfile.amd64 +++ b/frontend/Dockerfile.amd64 @@ -4,10 +4,10 @@ LABEL Lan Tian "lantian@lantian.pub" ENV GOOS=linux GOARCH=amd64 WORKDIR /root COPY . . -RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \ +RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang git \ && cd /root && go get github.com/gorilla/handlers && go build -o /frontend \ && cd / && rm -rf /root/* \ - && apt-get -qq purge -y golang \ + && apt-get -qq purge -y golang git \ && apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists ENTRYPOINT ["/frontend"] diff --git a/frontend/Dockerfile.arm32v7 b/frontend/Dockerfile.arm32v7 index 910a519..1794dd5 100644 --- a/frontend/Dockerfile.arm32v7 +++ b/frontend/Dockerfile.arm32v7 @@ -4,10 +4,10 @@ LABEL Lan Tian "lantian@lantian.pub" ENV GOOS=linux GOARCH=arm WORKDIR /root COPY . . -RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \ +RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang git \ && cd /root && go get github.com/gorilla/handlers && go build -o /frontend \ && cd / && rm -rf /root/* \ - && apt-get -qq purge -y golang \ + && apt-get -qq purge -y golang git \ && apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists ENTRYPOINT ["/frontend"] diff --git a/frontend/Dockerfile.arm64v8 b/frontend/Dockerfile.arm64v8 index 91471ea..c83d355 100644 --- a/frontend/Dockerfile.arm64v8 +++ b/frontend/Dockerfile.arm64v8 @@ -4,10 +4,10 @@ LABEL Lan Tian "lantian@lantian.pub" ENV GOOS=linux GOARCH=arm64 WORKDIR /root COPY . . -RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \ +RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang git \ && cd /root && go get github.com/gorilla/handlers && go build -o /frontend \ && cd / && rm -rf /root/* \ - && apt-get -qq purge -y golang \ + && apt-get -qq purge -y golang git \ && apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists ENTRYPOINT ["/frontend"] diff --git a/frontend/Dockerfile.i386 b/frontend/Dockerfile.i386 index 2acbb8c..12c5d77 100644 --- a/frontend/Dockerfile.i386 +++ b/frontend/Dockerfile.i386 @@ -4,10 +4,10 @@ LABEL Lan Tian "lantian@lantian.pub" ENV GOOS=linux GOARCH=386 WORKDIR /root COPY . . -RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \ +RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang git \ && cd /root && go get github.com/gorilla/handlers && go build -o /frontend \ && cd / && rm -rf /root/* \ - && apt-get -qq purge -y golang \ + && apt-get -qq purge -y golang git \ && apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists ENTRYPOINT ["/frontend"]