Skip to content

Commit 26ad0dd

Browse files
committed
chore(Dockerfile): add ANSWER_MODULE ENV
1 parent fb3b6a8 commit 26ad0dd

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,22 @@ LABEL maintainer="mingcheng<[email protected]>"
44

55
COPY . /answer
66
WORKDIR /answer
7+
RUN node -v
78
RUN make install-ui-packages ui && mv ui/build /tmp
89

910
# stage2 build the main binary within static resource
1011
FROM golang:1.19-alpine AS golang-builder
1112
LABEL maintainer="[email protected]"
1213

1314
ARG GOPROXY
15+
# ENV GOPROXY ${GOPROXY:-direct}
1416
ENV GOPROXY=https://goproxy.io,direct
1517

1618
ENV GOPATH /go
1719
ENV GOROOT /usr/local/go
1820
ENV PACKAGE github.com/answerdev/answer
1921
ENV BUILD_DIR ${GOPATH}/src/${PACKAGE}
22+
ENV ANSWER_MODULE ${BUILD_DIR}
2023

2124
ARG TAGS="sqlite sqlite_unlock_notify"
2225
ENV TAGS "bindata timetzdata $TAGS"

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ ENV GOPATH /go
2020
ENV GOROOT /usr/local/go
2121
ENV PACKAGE github.com/answerdev/answer
2222
ENV BUILD_DIR ${GOPATH}/src/${PACKAGE}
23+
ENV ANSWER_MODULE ${BUILD_DIR}
2324

2425
ARG TAGS="sqlite sqlite_unlock_notify"
2526
ENV TAGS "bindata timetzdata $TAGS"

0 commit comments

Comments
 (0)