Skip to content

Commit

Permalink
Fix release download
Browse files Browse the repository at this point in the history
  • Loading branch information
lukehinds committed Jan 7, 2025
1 parent 3b234ed commit eec0e57
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ ARG LATEST_RELEASE=https://api.github.com/repos/stacklok/codegate-ui/releases/la
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
jq \
unzip\
unzip \
ca-certificates

WORKDIR /usr/src/

# Download the latest release of the webapp
RUN echo "Latest FE release: $(curl -s ${LATEST_RELEASE} | jq -r '.tag_name')"
RUN curl -s ${LATEST_RELEASE} | jq -r '.zipball_url' | xargs curl -L -o main.zip
# Download the latest release of the webapp in one single RUN instruction
RUN TAG=$(curl -s ${LATEST_RELEASE} | jq -r '.tag_name') && \
echo "Latest FE release: ${TAG}" && \
curl -s ${LATEST_RELEASE} | jq -r '.zipball_url' | xargs curl -L -o main.zip

# Extract the downloaded zip file
RUN unzip main.zip
Expand Down

0 comments on commit eec0e57

Please sign in to comment.