Skip to content

Commit 30f1492

Browse files
committed
fix(docker): add go for golangci-lint
1 parent 34ffc19 commit 30f1492

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ RUN apt-get update \
77

88
RUN curl -sSfL https://github.com/raw/golangci/golangci-lint/master/install.sh | sh -s v1.41.1 && cp ./bin/golangci-lint /usr/local/bin/golangci-lint
99

10+
RUN wget https://dl.google.com/go/go1.16.4.linux-amd64.tar.gz \
11+
&& tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz \
12+
&& rm go1.16.4.linux-amd64.tar.gz
13+
14+
ENV GOROOT="/usr/local/go"
15+
ENV GOPATH="/go"
16+
ENV PATH="PATH=/go/bin:/usr/local/go/bin:$PATH"
17+
1018
WORKDIR /app
1119
COPY ./package.json ./
1220
RUN npm install

0 commit comments

Comments
 (0)