Skip to content

Commit 9e45600

Browse files
authored
added non-caching and apt-upgrade (#734)
1 parent 2c7c336 commit 9e45600

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

runtimes/8.0/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ ENV SUPERVISOR_PHP_USER="sail"
1515

1616
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1717

18-
RUN apt-get update \
18+
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
19+
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
20+
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom
21+
22+
RUN apt-get update && apt-get upgrade -y \
1923
&& mkdir -p /etc/apt/keyrings \
2024
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils librsvg2-bin fswatch ffmpeg nano \
2125
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /usr/share/keyrings/ppa_ondrej_php.gpg > /dev/null \

runtimes/8.1/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ ENV SUPERVISOR_PHP_USER="sail"
1515

1616
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1717

18-
RUN apt-get update \
18+
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
19+
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
20+
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom
21+
22+
RUN apt-get update && apt-get upgrade -y \
1923
&& mkdir -p /etc/apt/keyrings \
2024
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils librsvg2-bin fswatch ffmpeg nano \
2125
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /usr/share/keyrings/ppa_ondrej_php.gpg > /dev/null \

runtimes/8.2/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ ENV SUPERVISOR_PHP_USER="sail"
1515

1616
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1717

18-
RUN apt-get update \
18+
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
19+
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
20+
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom
21+
22+
RUN apt-get update && apt-get upgrade -y \
1923
&& mkdir -p /etc/apt/keyrings \
2024
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils librsvg2-bin fswatch ffmpeg nano \
2125
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /etc/apt/keyrings/ppa_ondrej_php.gpg > /dev/null \

runtimes/8.3/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ ENV SUPERVISOR_PHP_USER="sail"
1616

1717
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
1818

19-
RUN apt-get update \
19+
RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
20+
echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
21+
echo "Acquire::BrokenProxy true;" >> /etc/apt/apt.conf.d/99custom
22+
23+
RUN apt-get update && apt-get upgrade -y \
2024
&& mkdir -p /etc/apt/keyrings \
2125
&& apt-get install -y gnupg gosu curl ca-certificates zip unzip git supervisor sqlite3 libcap2-bin libpng-dev python2 dnsutils librsvg2-bin fswatch ffmpeg nano \
2226
&& curl -sS 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x14aa40ec0831756756d7f66c4f4ea0aae5267a6c' | gpg --dearmor | tee /etc/apt/keyrings/ppa_ondrej_php.gpg > /dev/null \

0 commit comments

Comments
 (0)