@@ -22,50 +22,39 @@ SHELL ["/bin/bash", "--login", "-exc"]
2222
2323WORKDIR /src
2424
25- RUN <<EOT
26- # Initial packages
27- apt-get update -q
28- apt-get install -qyy \
29- -o APT::Install-Recommends=false \
30- -o APT::Install-Suggests=false \
31- curl ca-certificates gdebi gnupg2 build-essential make git rsync python3-pip
32-
33- # Download NodeJS
34- curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
35- apt-get update -q
36- apt-get install -qyy \
37- -o APT::Install-Recommends=false \
38- -o APT::Install-Suggests=false \
39- nodejs
40-
41- # Install Hugo static site generator
42- curl -o hugo.deb -L https://github.com/gohugoio/hugo/releases/download/v${HUGO}/hugo_extended_${HUGO}_linux-amd64.deb
43- gdebi --non-interactive hugo.deb
44- rm hugo.deb
45-
46- # Cleanup
47- apt-get clean
48- rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
49-
50- # Ensure user and group exists
51- groupadd --non-unique -g ${GID} -o ${UNAME}
52- useradd -m --uid ${UID} --gid ${GID} -o -s /bin/bash ${UNAME}
53- chown -R ${UID}:${GID} /src
54-
55- EOT
25+ RUN : \
26+ && apt-get update -q \
27+ && apt-get install -qyy \
28+ -o APT::Install-Recommends=false \
29+ -o APT::Install-Suggests=false \
30+ curl ca-certificates gdebi gnupg2 build-essential \
31+ make git rsync python3-pip \
32+ && (curl -fsSL https://deb.nodesource.com/setup_22.x | bash -) \
33+ && apt-get update -q \
34+ && apt-get install -qyy \
35+ -o APT::Install-Recommends=false \
36+ -o APT::Install-Suggests=false \
37+ nodejs \
38+ && curl -o hugo.deb -L https://github.com/gohugoio/hugo/releases/download/v${HUGO}/hugo_extended_${HUGO}_linux-amd64.deb \
39+ && gdebi --non-interactive hugo.deb \
40+ && rm hugo.deb \
41+ && apt-get clean \
42+ && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
43+ && groupadd --non-unique -g ${GID} -o ${UNAME} \
44+ && useradd -m --uid ${UID} --gid ${GID} -o -s /bin/bash ${UNAME} \
45+ && chown -R ${UID}:${GID} /src \
46+ && :
5647
5748
5849USER ${UID}:${GID}
5950
6051ENV PATH="${PATH}:/home/${UNAME}/.local/bin"
6152
62- RUN <<EOT
63- python3 -m pip install \
53+ RUN python3 -m pip install \
6454 --user \
6555 --no-cache-dir \
6656 --break-system-packages \
6757 "arxiv~=2.1.0" \
6858 requests \
6959 unidecode \
7060 ujson
71- EOT
0 commit comments