-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
25 lines (16 loc) · 702 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
FROM golang:1.17-alpine
LABEL maintainer="Joel Courtney <[email protected]>"
LABEL application="go-aemo"
ARG GOLANGCI_VERSION="v1.43.0"
ENV GOLANGCI_VERSION $GOLANGCI_VERSION
RUN apk add bash build-base curl gcc git inotify-tools make openssh postgresql-client protobuf-dev tzdata zip
# We need to copy the entire directory to allow `go mod tidy` to work properly
COPY . /app
WORKDIR /app
RUN make dependencies && make dependencies-download
RUN make tools
# Get the golangci-lint binary
RUN echo "Installing golangci-lint $GOLANGCI_VERSION" && \
wget -O- -nv https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s ${GOLANGCI_VERSION}
COPY . /app
WORKDIR /app