Skip to content
This repository was archived by the owner on Sep 24, 2020. It is now read-only.

Commit 931bc5c

Browse files
committed
ignore --env GOROOT flag
1 parent e0faba4 commit 931bc5c

3 files changed

Lines changed: 11 additions & 2 deletions

File tree

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ insert_final_newline = true
1111
[*.go]
1212
indent_style = tab
1313
indent_size = 4
14+
15+
[Dockerfile]
16+
indent_style = space
17+
indent_size = 4

Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/i
1010
# Install from this repository
1111
ADD . /source
1212
WORKDIR /source
13-
RUN go build -o /entrypoint && rm -rf /source/*
13+
RUN cp /source/entrypoint.sh /entrypoint.sh && \
14+
go build -o /usr/local/bin/golangci-linter && \
15+
rm -rf /source/*
1416
WORKDIR /
1517

16-
ENTRYPOINT ["/entrypoint"]
18+
ENTRYPOINT ["/entrypoint.sh"]

entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
GOROOT=\
3+
golangci-linter

0 commit comments

Comments
 (0)