Skip to content

Commit 7a1e641

Browse files
committed
Switch to http://apt-archive.postgresql.org/pub/repos/apt/ focal-pgdg main to avoid 404 errors
Note the two part build was failing in the apt-get update after switching to the 2nd part do to https certificate issues with apt-archive.postgresql.org. Removing the two part build, got rid of this issue.
1 parent b1ea69a commit 7a1e641

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

Dockerfile

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
FROM ubuntu:focal-20250404 AS add-apt-repositories
2-
3-
RUN apt-get update \
4-
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg2 \
5-
&& apt-key adv --keyserver keyserver.ubuntu.com --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
6-
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main" >> /etc/apt/sources.list \
7-
&& apt-key adv --keyserver keyserver.ubuntu.com --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \
8-
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu focal main" >> /etc/apt/sources.list \
9-
&& apt-key adv --keyserver keyserver.ubuntu.com --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
10-
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu focal main" >> /etc/apt/sources.list \
11-
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
12-
&& echo 'deb http://apt.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
13-
&& apt-key adv --keyserver keyserver.ubuntu.com --recv B7B3B788A8D3785C \
14-
&& echo "deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7" >> /etc/apt/sources.list
15-
161
FROM ubuntu:focal-20250404
172

183
LABEL maintainer="[email protected]"
@@ -31,12 +16,19 @@ ENV REDMINE_INSTALL_DIR="${REDMINE_HOME}/redmine" \
3116
REDMINE_BUILD_ASSETS_DIR="${REDMINE_ASSETS_DIR}/build" \
3217
REDMINE_RUNTIME_ASSETS_DIR="${REDMINE_ASSETS_DIR}/runtime"
3318

34-
COPY --from=add-apt-repositories /etc/apt/trusted.gpg /etc/apt/trusted.gpg
35-
36-
COPY --from=add-apt-repositories /etc/apt/sources.list /etc/apt/sources.list
37-
COPY --from=add-apt-repositories /etc/apt/sources.list.d/pgdg.list /etc/apt/sources.list.d/
38-
3919
RUN apt-get update \
20+
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget gnupg2 \
21+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv E1DD270288B4E6030699E45FA1715D88E1DF1F24 \
22+
&& echo "deb http://ppa.launchpad.net/git-core/ppa/ubuntu focal main" >> /etc/apt/sources.list \
23+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv 80F70E11F0F0D5F10CB20E62F5DA5F09C3173AA6 \
24+
&& echo "deb http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu focal main" >> /etc/apt/sources.list \
25+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
26+
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu focal main" >> /etc/apt/sources.list \
27+
&& wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \
28+
&& echo 'deb http://apt-archive.postgresql.org/pub/repos/apt/ focal-pgdg main' > /etc/apt/sources.list.d/pgdg.list \
29+
&& apt-key adv --keyserver keyserver.ubuntu.com --recv B7B3B788A8D3785C \
30+
&& echo "deb http://repo.mysql.com/apt/ubuntu/ bionic mysql-5.7" >> /etc/apt/sources.list \
31+
&& apt-get update \
4032
&& DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y \
4133
supervisor logrotate nginx mysql-client=5.7.* postgresql-client ca-certificates sudo tzdata \
4234
imagemagick subversion git cvs bzr mercurial darcs rsync ruby${RUBY_VERSION} locales openssh-client \

0 commit comments

Comments
 (0)