Skip to content

Commit 50c10eb

Browse files
thatguyinabeanieopencode
andcommitted
Improve Dockerfile formatting and readability
- Use consistent 2-space indentation throughout - Remove unnecessary comment blocks - Better organize ARG declarations - Improve line continuation formatting 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai>
1 parent 3bfd17e commit 50c10eb

File tree

1 file changed

+19
-23
lines changed

1 file changed

+19
-23
lines changed

Dockerfile

Lines changed: 19 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,44 @@
22

33
FROM gabemendoza1/cloudcode-baseimage-ubuntu-fips:jammy-22.04
44

5-
# set version label
65
ARG BUILD_DATE
76
ARG VERSION
87
ARG CODE_RELEASE
8+
ARG DEBIAN_FRONTEND="noninteractive"
9+
910
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
1011
LABEL maintainer="civisanalytics"
1112

12-
# environment settings
13-
ARG DEBIAN_FRONTEND="noninteractive"
1413
ENV HOME="/workspace"
1514

16-
RUN \
17-
echo "**** install runtime dependencies ****" && \
15+
RUN echo "**** install runtime dependencies ****" && \
1816
apt-get update && \
1917
apt-get install -y \
20-
git \
21-
libatomic1 \
22-
nano \
23-
net-tools \
24-
sudo && \
18+
git \
19+
libatomic1 \
20+
nano \
21+
net-tools \
22+
sudo && \
23+
\
2524
echo "**** install code-server ****" && \
2625
if [ -z ${CODE_RELEASE+x} ]; then \
27-
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
28-
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
26+
CODE_RELEASE=$(curl -sX GET https://api.github.com/repos/coder/code-server/releases/latest \
27+
| awk '/tag_name/{print $4;exit}' FS='[""]' | sed 's|^v||'); \
2928
fi && \
3029
mkdir -p /app/code-server && \
31-
curl -o \
32-
/tmp/code-server.tar.gz -L \
33-
"https://github.com/coder/code-server/releases/download/v${CODE_RELEASE}/code-server-${CODE_RELEASE}-linux-amd64.tar.gz" && \
34-
tar xf /tmp/code-server.tar.gz -C \
35-
/app/code-server --strip-components=1 && \
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" && \
32+
tar xf /tmp/code-server.tar.gz -C /app/code-server --strip-components=1 && \
3633
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
34+
\
3735
echo "**** clean up ****" && \
3836
apt-get clean && \
3937
rm -rf \
40-
/config/* \
41-
/tmp/* \
42-
/var/lib/apt/lists/* \
43-
/var/tmp/*
38+
/config/* \
39+
/tmp/* \
40+
/var/lib/apt/lists/* \
41+
/var/tmp/*
4442

45-
# add local files
4643
COPY /root /
4744

48-
# ports and volumes
4945
EXPOSE 8443

0 commit comments

Comments
 (0)