-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (25 loc) · 1.06 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
# syntax = docker/dockerfile:experimental
FROM jitesoft/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/step-cli" \
com.jitesoft.project.repo.issues="https://gitlab.com/jitesoft/dockerfiles/step-cli/issues" \
com.jitesoft.project.registry.uri="registry.gitlab.com/jitesoft/dockerfiles/step-cli" \
com.jitesoft.app.step-cli.version="${VERSION}"
ARG TARGETARCH
RUN --mount=type=bind,source=./bin,target=/tmp/bin \
cp /tmp/bin/entrypoint.sh /usr/local/bin/entrypoint; \
cp /tmp/bin/step-${TARGETARCH} /usr/local/bin/step \
&& addgroup -g 1000 -S step \
&& adduser -u 1000 -D -G step step \
&& chown step:step /home/step \
&& chmod +x /usr/local/bin/step \
&& chmod +x /usr/local/bin/entrypoint
USER step
WORKDIR /home/step
STOPSIGNAL SIGTERM
ENTRYPOINT ["entrypoint"]
CMD ["/usr/local/bin/step", "--version"]