frontend: tell go to download external libs

This commit is contained in:
Lan Tian 2020-06-01 23:17:48 +08:00
parent 18d2d5ba6c
commit 0e647d9980
No known key found for this signature in database
GPG Key ID: 27F31700E751EC22
4 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=amd64
WORKDIR /root
COPY . .
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \
&& cd /root && go build -o /frontend \
&& 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 autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists

View File

@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=arm
WORKDIR /root
COPY . .
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \
&& cd /root && go build -o /frontend \
&& 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 autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists

View File

@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=arm64
WORKDIR /root
COPY . .
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \
&& cd /root && go build -o /frontend \
&& 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 autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists

View File

@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=386
WORKDIR /root
COPY . .
RUN apt-get -qq update && DEBIAN_FRONTEND=noninteractive apt-get -qq install -y golang \
&& cd /root && go build -o /frontend \
&& 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 autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists