-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (21 loc) · 952 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
# syntax=docker/dockerfile:experimental
FROM registry.gitlab.com/jitesoft/dockerfiles/alpine:latest
ARG VERSION
LABEL maintainer="Johannes Tegnér <[email protected]>" \
maintainer.org="Jitesoft" \
maintainer.org.uri="https://jitesoft.com" \
com.jitesoft.project.repo.type="git" \
com.jitesoft.project.repo.uri="https://gitlab.com/jitesoft/dockerfiles/cfssl" \
com.jitesoft.project.repo.issues="https://gitlab.com/jitesoft/dockerfiles/cfssl/issues" \
com.jitesoft.project.registry.uri="registry.gitlab.com/jitesoft/dockerfiles/cfssl" \
com.jitesoft.app.cfssl.version="${VERSION}"
ARG TARGETARCH
RUN --mount=type=bind,source=./bin,target=/tmp \
addgroup -g 1000 cfssl \
&& cp /tmp/entrypoint /usr/local/bin/ \
&& adduser -u 1000 -G cfssl -s /bin/ash -D cfssl \
&& cp /tmp/${TARGETARCH}/* /usr/local/bin/ \
&& chmod +x /usr/local/bin/*
USER cfssl
ENTRYPOINT ["entrypoint"]
CMD ["cfssl", "version"]