Skip to content

Commit

Permalink
build: Use the jlink image in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
felipebz committed Jan 13, 2023
1 parent d4c42b6 commit 854e04f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build/
source-test/
.gradle/
!build/distributions/zpa-cli-shadow-*.tar
!build/distributions/zpa-cli-*.tar
!build/jreleaser/assemble/zpa-cli/jlink/zpa-cli-*-linux-x86_64.tar.gz
10 changes: 3 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
FROM eclipse-temurin:17-jre-alpine
FROM ubuntu:latest

COPY build/distributions/zpa-cli-shadow-*.tar /opt/
ADD build/jreleaser/assemble/zpa-cli/jlink/zpa-cli-*-linux-x86_64.tar.gz /opt/

RUN cd /opt && \
mv zpa-cli-shadow-*.tar zpa-cli.tar && \
tar xvf zpa-cli.tar && \
rm -f zpa-cli.tar && \
mv -f zpa-cli-*/ zpa-cli/
RUN mv /opt/zpa-cli-*/ /opt/zpa-cli/

ENV PATH=/opt/zpa-cli/bin:$PATH

Expand Down

0 comments on commit 854e04f

Please sign in to comment.