Skip to content

Commit 7637e2a

Browse files
netcat
1 parent fe03100 commit 7637e2a

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ ENV HOME="/workspace"
1515
RUN echo "**** install runtime dependencies ****" && \
1616
apt-get update && \
1717
apt-get install -y \
18+
git \
1819
libatomic1 \
1920
nano \
2021
net-tools \
21-
netcat-openbsd \
22+
netcat-traditional \
2223
sudo && \
2324
\
2425
echo "**** install code-server ****" && \
@@ -27,9 +28,10 @@ RUN echo "**** install runtime dependencies ****" && \
2728
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
2829
fi && \
2930
mkdir -p /app/code-server && \
30-
curl -o /tmp/code-server.tar.gz -L \
31-
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
31+
DOWNLOAD_URL="https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
32+
curl -fsSL -o /tmp/code-server.tar.gz "${DOWNLOAD_URL}" && \
3233
tar xf /tmp/code-server.tar.gz -C /app/code-server --strip-components=1 && \
34+
/app/code-server/bin/code-server --version && \
3335
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
3436
\
3537
echo "**** clean up ****" && \

0 commit comments

Comments
 (0)