Skip to content

Commit 2cfc2f4

Browse files
committed
update Dockerfile
1 parent f67a14d commit 2cfc2f4

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

Dockerfile

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
FROM node:latest AS ui_builder
2-
3-
WORKDIR /build
4-
5-
RUN cd /build \
6-
&& git clone https://github.com/ProtobufBot/pbbot-react-ui.git \
7-
&& cd /build/pbbot-react-ui \
8-
&& npm install \
9-
&& npm run build
10-
111
FROM golang:1.16-alpine AS gmc_builder
122

133
RUN go env -w GO111MODULE=auto \
@@ -19,9 +9,8 @@ WORKDIR /build
199

2010
COPY ./ .
2111

22-
COPY --from=ui_builder /build/pbbot-react-ui/build ./pkg/static/static
23-
24-
RUN cd /build \
12+
RUN wget https://github.com/ProtobufBot/pbbot-react-ui/releases/latest/download/static.zip && unzip -o static.zip -d ./pkg/static/ \
13+
&& cd /build \
2514
&& go build -ldflags "-s -w -extldflags '-static'" -o gmc ./service/gmc
2615

2716
FROM alpine:latest

0 commit comments

Comments
 (0)