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

Commit b1eeed9

Browse files
author
Luke Hinds
committed
Fix release download
1 parent 3ad4566 commit b1eeed9

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

Dockerfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,20 @@ COPY . /app
2424
# Build the webapp
2525
FROM node:23-slim AS webbuilder
2626

27+
28+
2729
# Install curl for downloading the webapp from GH and unzip to extract it
2830
RUN apt-get update && apt-get install -y --no-install-recommends \
2931
curl \
3032
jq \
31-
unzip \
33+
unzip\
3234
ca-certificates
3335

3436
WORKDIR /usr/src/
3537

36-
# Ensure the LATEST_RELEASE argument is passed or set a default value
38+
# Set the release URL (this should be static and not change often) and download latest
3739
ARG LATEST_RELEASE="https://api.github.com/repos/stacklok/codegate-ui/releases/latest"
38-
RUN echo "Latest FE release: $LATEST_RELEASE" \
39-
&& TAG=$(curl -s $LATEST_RELEASE | jq -r '.tag_name') \
40-
&& echo "Latest FE release: ${TAG}" \
41-
&& ZIP_URL=$(curl -s $LATEST_RELEASE | jq -r '.zipball_url') \
42-
&& curl -L -o main.zip $ZIP_URL
40+
RUN curl -s ${LATEST_RELEASE} | jq -r '.zipball_url' | xargs curl -L -o main.zip
4341

4442
# Extract the downloaded zip file
4543
RUN unzip main.zip

0 commit comments

Comments
 (0)