Skip to content

Commit

Permalink
Fix debian dependencies links (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben L. Mendoza authored May 11, 2023
1 parent ae4709e commit e963742
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions images/db/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
FROM postgres:11
RUN rm /etc/apt/sources.list.d/pgdg.list
RUN apt-get update && apt-get -y install apt-transport-https
RUN sed -i s/deb.debian.org/archive.debian.org/g /etc/apt/sources.list
RUN sed -i 's|security.debian.org|archive.debian.org|g' /etc/apt/sources.list
RUN sed -i '/stretch-updates/d' /etc/apt/sources.list
RUN cat /etc/apt/sources.list
RUN apt-get update
RUN apt-get -y install apt-transport-https
RUN echo "deb [ signed-by=/usr/local/share/keyrings/postgres.gpg.asc ] https://apt-archive.postgresql.org/pub/repos/apt/ stretch-pgdg main 11" >/etc/apt/sources.list.d/pgdg.list
RUN apt-get update \
&& apt-get install -y \
Expand All @@ -9,7 +14,7 @@ RUN apt-get update \
build-essential \
postgresql-11-postgis-2.5 \
&& apt-get clean && rm -rf /var/lib/apt/lists/*

ADD functions/functions.sql /usr/local/share/osm-db-functions.sql
ADD docker_postgres.sh /docker-entrypoint-initdb.d/
RUN mkdir -p db
Expand Down

0 comments on commit e963742

Please sign in to comment.