File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 1
- FROM golang:bullseye
1
+ FROM golang:latest AS build
2
+
3
+ # Install dependencies:
4
+ RUN apt-get update && apt-get -y install curl
5
+ RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.45.2
6
+
7
+ FROM golang:latest
2
8
LABEL maintainer=
"Victor \" Vito\" Gama <[email protected] >"
3
9
10
+ RUN apt-get update && apt-get -y install build-essential ruby && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*.
11
+
4
12
WORKDIR /usr/src/app/
5
13
14
+ COPY --from=build /usr/local/bin/golangci-lint /usr/local/bin/golangci-lint
6
15
COPY engine.json /
7
16
8
- # Install dependencies:
9
- RUN apt-get update && apt-get -y install build-essential curl git ruby
10
- RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b /usr/local/bin v1.45.2
11
-
12
17
RUN adduser -u 9000 --shell /bin/false app
13
18
USER app
14
19
You can’t perform that action at this time.
0 commit comments