forked from CircleCI-Public/orb-tools-orb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
32 lines (23 loc) · 829 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
26
27
28
29
30
31
32
ARG ALPINE
ARG CLI
FROM mikefarah/yq:2.2.0 as yq
FROM gofunky/envtpl:0.2.1 as envtpl
FROM circleci/circleci-cli:${CLI}-alpine as cli
FROM gofunky/git:alpine${ALPINE}-envload
LABEL maintainer="mat@fax.fyi"
COPY --from=yq /usr/bin/yq /usr/local/bin/yq
RUN chmod +x /usr/local/bin/yq
COPY --from=envtpl /usr/local/bin/envtpl /usr/local/bin/envtpl
RUN chmod +x /usr/local/bin/envtpl
COPY --from=cli /usr/local/bin/circleci /usr/local/bin/circleci
RUN chmod +x /usr/local/bin/circleci
RUN apk add --no-cache docker
ARG VERSION
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/gofunky/orbtools" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0"
ENTRYPOINT ["circleci"]