Skip to content

Commit 687b838

Browse files
authored
Merge pull request #1418 from tobiasge/update-unit
Update Nginx Unit
2 parents 1c30173 + 1c8cdfa commit 687b838

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

Diff for: Dockerfile

+4-9
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ RUN \
4444
ARG FROM
4545
FROM ${FROM} AS main
4646

47+
COPY docker/unit.list /etc/apt/sources.list.d/unit.list
48+
ADD --chmod=444 --chown=0:0 https://unit.nginx.org/keys/nginx-keyring.gpg /usr/share/keyrings/nginx-keyring.gpg
4749
RUN export DEBIAN_FRONTEND=noninteractive \
4850
&& apt-get update -qq \
4951
&& apt-get upgrade \
@@ -60,15 +62,8 @@ RUN export DEBIAN_FRONTEND=noninteractive \
6062
openssl \
6163
python3 \
6264
tini \
63-
&& curl --silent --output /usr/share/keyrings/nginx-keyring.gpg \
64-
https://unit.nginx.org/keys/nginx-keyring.gpg \
65-
&& echo "deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] https://packages.nginx.org/unit/ubuntu/ noble unit" \
66-
> /etc/apt/sources.list.d/unit.list \
67-
&& apt-get update -qq \
68-
&& apt-get install \
69-
--yes -qq --no-install-recommends \
70-
unit=1.34.1-1~noble \
71-
unit-python3.12=1.34.1-1~noble \
65+
unit-python3.12=1.34.2-1~noble \
66+
unit=1.34.2-1~noble \
7267
&& rm -rf /var/lib/apt/lists/*
7368

7469
# Copy the modified 'requirements*.txt' files, to have the files actually used during installation

Diff for: docker/unit.list

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
deb [signed-by=/usr/share/keyrings/nginx-keyring.gpg] http://packages.nginx.org/unit/ubuntu/ noble unit

0 commit comments

Comments
 (0)