-
Notifications
You must be signed in to change notification settings - Fork 51
/
Dockerfile
23 lines (22 loc) · 814 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
FROM golang:1.17-alpine as builder
WORKDIR /usr/src/g10k
COPY . /usr/src/g10k
RUN apk add --no-cache gcc make musl-dev git openssh bash && \
make g10k
FROM puppet/r10k:3.7.0
COPY --from=builder /usr/src/g10k/g10k /usr/bin/
COPY Dockerfile /Dockerfile
LABEL org.label-schema.maintainer="Benjamin Kübler <g10k-docker@kuebler.email>" \
org.label-schema.vendor="Andreas Paul" \
org.label-schema.url="https://github.com/xorpaul/g10k" \
org.label-schema.name="g10k" \
org.label-schema.license="Apache-2.0" \
org.label-schema.vcs-url="https://github.com/xorpaul/g10k" \
org.label-schema.schema-version="1.0" \
org.label-schema.dockerfile="/Dockerfile"
WORKDIR /code
USER root
RUN apk add --no-cache git openssh bash
USER puppet
ENTRYPOINT [ "/usr/bin/g10k" ]
CMD ["-help"]