Skip to content

Commit f1f0189

Browse files
committed
Cleanup Dockerfile
1 parent 19eb35c commit f1f0189

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

Dockerfile

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
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
28
LABEL maintainer="Victor \"Vito\" Gama <[email protected]>"
39

10+
RUN apt-get update && apt-get -y install build-essential ruby && rm -rf /var/cache/apt/archives /var/lib/apt/lists/*.
11+
412
WORKDIR /usr/src/app/
513

14+
COPY --from=build /usr/local/bin/golangci-lint /usr/local/bin/golangci-lint
615
COPY engine.json /
716

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-
1217
RUN adduser -u 9000 --shell /bin/false app
1318
USER app
1419

0 commit comments

Comments
 (0)