Skip to content

Commit 2f1d336

Browse files
committed
update Dockerfile
1 parent 60592d5 commit 2f1d336

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM golang:1.16-alpine AS gmc_builder
22

33
RUN go env -w GO111MODULE=auto \
44
&& go env -w CGO_ENABLED=0 \
5+
&& go env -w GOPROXY="https://goproxy.io,direct" \
56
&& mkdir /build
67

78
WORKDIR /build
@@ -17,10 +18,10 @@ FROM node:latest AS ui_builder
1718
WORKDIR /build
1819

1920
RUN cd /build \
20-
&& git clone https://github.com/ProtobufBot/Client-UI.git \
21-
&& cd /build/Client-UI \
22-
&& npm install \
23-
&& npm run build
21+
&& git clone https://github.com/ProtobufBot/pbbot-react-ui.git \
22+
&& cd /build/pbbot-react-ui \
23+
&& yarn install \
24+
&& yarn build
2425

2526
FROM alpine:latest
2627

@@ -29,7 +30,7 @@ WORKDIR /data
2930
COPY --from=gmc_builder /build/gmc /usr/bin/gmc
3031
RUN chmod +x /usr/bin/gmc
3132

32-
COPY --from=ui_builder /build/Client-UI/dist /data/static
33+
COPY --from=ui_builder /build/pbbot-react-ui/build /data/static
3334

3435
ADD ./scripts/env_run.sh /data/
3536

0 commit comments

Comments
 (0)