-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (18 loc) · 740 Bytes
/
Dockerfile
File metadata and controls
26 lines (18 loc) · 740 Bytes
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
26
FROM hephy/go-dev:v1.27.1
# This Dockerfile is used to bundle the source and all dependencies into an image for testing.
RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk-jessie main" \
| tee /etc/apt/sources.list.d/google-cloud-sdk.list \
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg \
| apt-key add - \
&& apt-get update \
&& apt-get install -y google-cloud-sdk \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
ENV CGO_ENABLED=0
ADD https://codecov.io/bash /usr/local/bin/codecov
RUN chmod +x /usr/local/bin/codecov
WORKDIR /go/src/github.com/teamhephy/workflow-cli
ENV GO111MODULE=on
COPY ./_scripts /usr/local/bin
COPY . /go/src/github.com/teamhephy/workflow-cli
RUN go build