File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM quay.io/vektorlab/ctop as demyx_ctop
22FROM koalaman/shellcheck as demyx_shellcheck
3- FROM debian:bookworm -slim
3+ FROM debian:stable -slim
44
55LABEL sh.demyx.image demyx/code-server:browse
66LABEL sh.demyx.maintainer Demyx <info@demyx.sh>
@@ -94,9 +94,10 @@ COPY --chown=demyx:demyx config "$DEMYX_CONFIG"
9494# Configure code-server
9595RUN set -ex; \
9696 # Get code-server
97- CODE_VERSION="$(curl -sL https://api.github.com/repos/cdr/code-server/releases/latest | jq -r .tag_name)" ; \
97+ CODE_VERSION="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | jq -r .tag_name)" ; \
98+ test -n "$CODE_VERSION" && test "$CODE_VERSION" != "null" ; \
9899 CODE_VERSION_NUMBER="$(echo " $CODE_VERSION" | sed 's|v||g')" ; \
99- curl -sL https://github.com/cdr /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
100+ curl -fsSL https://github.com/coder /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
100101 tar -xzf /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz -C /tmp; \
101102 mv /tmp/code-server-"$CODE_VERSION_NUMBER" -linux-amd64 /usr/local/lib/code-server; \
102103 \
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ FROM quay.io/vektorlab/ctop as demyx_ctop
22FROM docker as demyx_docker
33FROM golang:buster as demyx_go
44FROM koalaman/shellcheck as demyx_shellcheck
5- FROM debian:bookworm -slim
5+ FROM debian:stable -slim
66
77LABEL sh.demyx.image demyx/code-server:go
88LABEL sh.demyx.maintainer Demyx <info@demyx.sh>
@@ -87,9 +87,10 @@ COPY --chown=demyx:demyx config "$DEMYX_CONFIG"
8787# Configure code-server
8888RUN set -ex; \
8989 # Get code-server
90- CODE_VERSION="$(curl -sL https://api.github.com/repos/cdr/code-server/releases/latest | jq -r .tag_name)" ; \
90+ CODE_VERSION="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | jq -r .tag_name)" ; \
91+ test -n "$CODE_VERSION" && test "$CODE_VERSION" != "null" ; \
9192 CODE_VERSION_NUMBER="$(echo " $CODE_VERSION" | sed 's|v||g')" ; \
92- curl -sL https://github.com/cdr /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
93+ curl -fsSL https://github.com/coder /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
9394 tar -xzf /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz -C /tmp; \
9495 mv /tmp/code-server-"$CODE_VERSION_NUMBER" -linux-amd64 /usr/local/lib/code-server; \
9596 \
Original file line number Diff line number Diff line change 11FROM quay.io/vektorlab/ctop as demyx_ctop
22FROM docker as demyx_docker
33FROM koalaman/shellcheck as demyx_shellcheck
4- FROM debian:bookworm -slim
4+ FROM debian:stable -slim
55
66LABEL sh.demyx.image demyx/code-server
77LABEL sh.demyx.maintainer Demyx <info@demyx.sh>
@@ -84,9 +84,10 @@ COPY --chown=demyx:demyx config "$DEMYX_CONFIG"
8484# Configure code-server
8585RUN set -ex; \
8686 # Get code-server
87- CODE_VERSION="$(curl -sL https://api.github.com/repos/cdr/code-server/releases/latest | jq -r .tag_name)" ; \
87+ CODE_VERSION="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | jq -r .tag_name)" ; \
88+ test -n "$CODE_VERSION" && test "$CODE_VERSION" != "null" ; \
8889 CODE_VERSION_NUMBER="$(echo " $CODE_VERSION" | sed 's|v||g')" ; \
89- curl -sL https://github.com/cdr /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
90+ curl -fsSL https://github.com/coder /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
9091 tar -xzf /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz -C /tmp; \
9192 mv /tmp/code-server-"$CODE_VERSION_NUMBER" -linux-amd64 /usr/local/lib/code-server; \
9293 \
Original file line number Diff line number Diff line change @@ -284,9 +284,10 @@ COPY --chown=demyx:demyx config "$DEMYX_CONFIG"
284284# Configure code-server
285285RUN set -ex; \
286286 # Get code-server
287- CODE_VERSION="$(curl -sL https://api.github.com/repos/cdr/code-server/releases/latest | jq -r .tag_name)" ; \
287+ CODE_VERSION="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | jq -r .tag_name)" ; \
288+ test -n "$CODE_VERSION" && test "$CODE_VERSION" != "null" ; \
288289 CODE_VERSION_NUMBER="$(echo " $CODE_VERSION" | sed 's|v||g')" ; \
289- curl -sL https://github.com/cdr /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
290+ curl -fsSL https://github.com/coder /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
290291 tar -xzf /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz -C /tmp; \
291292 mv /tmp/code-server-"$CODE_VERSION_NUMBER" -linux-amd64 /usr/local/lib/code-server; \
292293 \
Original file line number Diff line number Diff line change @@ -177,9 +177,10 @@ COPY --chown=demyx:demyx config "$DEMYX_CONFIG"
177177# Configure code-server
178178RUN set -ex; \
179179 # Get code-server
180- CODE_VERSION="$(curl -sL https://api.github.com/repos/cdr/code-server/releases/latest | jq -r .tag_name)" ; \
180+ CODE_VERSION="$(curl -fsSL https://api.github.com/repos/coder/code-server/releases/latest | jq -r .tag_name)" ; \
181+ test -n "$CODE_VERSION" && test "$CODE_VERSION" != "null" ; \
181182 CODE_VERSION_NUMBER="$(echo " $CODE_VERSION" | sed 's|v||g')" ; \
182- curl -sL https://github.com/cdr /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
183+ curl -fsSL https://github.com/coder /code-server/releases/download/"$CODE_VERSION" /code-server-"$CODE_VERSION_NUMBER" -linux-amd64.tar.gz -o /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz; \
183184 tar -xzf /tmp/code-server-"$CODE_VERSION" -linux-amd64.tar.gz -C /tmp; \
184185 mv /tmp/code-server-"$CODE_VERSION_NUMBER" -linux-amd64 /usr/local/lib/code-server; \
185186 \
You can’t perform that action at this time.
0 commit comments