This repository was archived by the owner on Jun 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,6 @@ COPY . /app
24
24
# Build the webapp
25
25
FROM node:23-slim AS webbuilder
26
26
27
- # Set the release URL (this should be static and not change often)
28
- ARG LATEST_RELEASE=https://api.github.com/repos/stacklok/codegate-ui/releases/latest
29
-
30
27
# Install curl for downloading the webapp from GH and unzip to extract it
31
28
RUN apt-get update && apt-get install -y --no-install-recommends \
32
29
curl \
@@ -36,10 +33,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
36
33
37
34
WORKDIR /usr/src/
38
35
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
36
+ # Ensure the LATEST_RELEASE argument is passed or set a default value
37
+ 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
43
43
44
44
# Extract the downloaded zip file
45
45
RUN unzip main.zip
You can’t perform that action at this time.
0 commit comments