-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (18 loc) · 750 Bytes
/
Dockerfile
File metadata and controls
25 lines (18 loc) · 750 Bytes
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
FROM bellsoft/liberica-runtime-container:jre-25.0.2_12-slim-musl
RUN addgroup -S -g 1001 zpa-cli \
&& adduser -S -D -u 1001 -G zpa-cli -h /home/zpa-cli zpa-cli
COPY build/distributions/zpa-cli-*.tar /tmp/
RUN set -eux; \
mkdir -p /opt/zpa-cli; \
tar -xf /tmp/zpa-cli-*.tar --strip-components=1 -C /opt/zpa-cli; \
rm -f /tmp/zpa-cli-*.tar; \
chown -R 1001:1001 /opt/zpa-cli
ENV PATH=/opt/zpa-cli/bin:$PATH
USER 1001:1001
WORKDIR /src
ENTRYPOINT ["/opt/zpa-cli/bin/zpa-cli"]
CMD ["--help"]
LABEL org.opencontainers.image.title="zpa-cli" \
org.opencontainers.image.description="ZPA CLI tool" \
org.opencontainers.image.source="https://github.com/felipebz/zpa-cli" \
org.opencontainers.image.licenses="LGPL-3.0"