forked from cloudposse/build-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
48 lines (38 loc) · 1.14 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM golang:1.14.4-alpine3.11
LABEL maintainer="Cloud Posse <[email protected]>"
LABEL "com.github.actions.name"="Build Harness"
LABEL "com.github.actions.description"="Run any build-harness make target"
LABEL "com.github.actions.icon"="tool"
LABEL "com.github.actions.color"="blue"
RUN apk update && \
apk --update add \
bash \
ca-certificates \
coreutils \
curl \
git \
gettext \
grep \
jq \
libc6-compat \
make \
py-pip && \
git config --global advice.detachedHead false
RUN curl -sSL https://apk.cloudposse.com/install.sh | bash
## Install as packages
## Codefresh required additional libraries for alpine
## So can not be curl binary
RUN apk --update --no-cache add \
chamber@cloudposse \
helm@cloudposse \
helmfile@cloudposse \
codefresh@cloudposse \
yq@cloudposse && \
sed -i /PATH=/d /etc/profile
ADD ./ /build-harness/
ENV INSTALL_PATH /usr/local/bin
WORKDIR /build-harness
RUN make -s bash/lint make/lint
RUN make -s template/deps aws/install terraform/install readme/deps
RUN make -s go/deps-build go/deps-dev
ENTRYPOINT ["/usr/bin/make"]