Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit eec0e57

Browse files
committed
Fix release download
1 parent 3b234ed commit eec0e57

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,15 @@ ARG LATEST_RELEASE=https://api.github.com/repos/stacklok/codegate-ui/releases/la
3131
RUN apt-get update && apt-get install -y --no-install-recommends \
3232
curl \
3333
jq \
34-
unzip\
34+
unzip \
3535
ca-certificates
3636

3737
WORKDIR /usr/src/
3838

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

4344
# Extract the downloaded zip file
4445
RUN unzip main.zip

0 commit comments

Comments
 (0)