frontend: tell go to download external libs
This commit is contained in:
parent
18d2d5ba6c
commit
0e647d9980
@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=amd64
|
|||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY . .
|
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 \
|
||||||
&& cd /root && go build -o /frontend \
|
&& cd /root && go get github.com/gorilla/handlers && go build -o /frontend \
|
||||||
&& cd / && rm -rf /root/* \
|
&& cd / && rm -rf /root/* \
|
||||||
&& apt-get -qq purge -y golang \
|
&& apt-get -qq purge -y golang \
|
||||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||||
|
@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=arm
|
|||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY . .
|
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 \
|
||||||
&& cd /root && go build -o /frontend \
|
&& cd /root && go get github.com/gorilla/handlers && go build -o /frontend \
|
||||||
&& cd / && rm -rf /root/* \
|
&& cd / && rm -rf /root/* \
|
||||||
&& apt-get -qq purge -y golang \
|
&& apt-get -qq purge -y golang \
|
||||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||||
|
@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=arm64
|
|||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY . .
|
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 \
|
||||||
&& cd /root && go build -o /frontend \
|
&& cd /root && go get github.com/gorilla/handlers && go build -o /frontend \
|
||||||
&& cd / && rm -rf /root/* \
|
&& cd / && rm -rf /root/* \
|
||||||
&& apt-get -qq purge -y golang \
|
&& apt-get -qq purge -y golang \
|
||||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||||
|
@ -5,7 +5,7 @@ ENV GOOS=linux GOARCH=386
|
|||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
COPY . .
|
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 \
|
||||||
&& cd /root && go build -o /frontend \
|
&& cd /root && go get github.com/gorilla/handlers && go build -o /frontend \
|
||||||
&& cd / && rm -rf /root/* \
|
&& cd / && rm -rf /root/* \
|
||||||
&& apt-get -qq purge -y golang \
|
&& apt-get -qq purge -y golang \
|
||||||
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
&& apt-get -qq autoremove --purge -y && apt-get clean && rm -rf /var/lib/apt/lists
|
||||||
|
Loading…
x
Reference in New Issue
Block a user