We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f67a14d commit 2cfc2f4Copy full SHA for 2cfc2f4
Dockerfile
@@ -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
11
FROM golang:1.16-alpine AS gmc_builder
12
13
RUN go env -w GO111MODULE=auto \
@@ -19,9 +9,8 @@ WORKDIR /build
19
20
COPY ./ .
21
22
-COPY --from=ui_builder /build/pbbot-react-ui/build ./pkg/static/static
23
24
+RUN wget https://github.com/ProtobufBot/pbbot-react-ui/releases/latest/download/static.zip && unzip -o static.zip -d ./pkg/static/ \
+ && cd /build \
25
14
&& go build -ldflags "-s -w -extldflags '-static'" -o gmc ./service/gmc
26
15
27
16
FROM alpine:latest
0 commit comments