File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ ARG MERGE_COMMIT_SHA
1111
1212
1313# Build the backend
14- FROM python:3.9-slim as backend-build
14+ FROM python:3.9-slim-bookworm as backend-build
1515
1616# Prevents Python from writing pyc files.
1717ENV PYTHONDONTWRITEBYTECODE=1
@@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2828 && /opt/venv/bin/pip install -r requirements.txt
2929
3030# Final image
31- FROM python:3.9-slim
31+ FROM python:3.9-slim-bookworm
3232
3333ARG BUILD_DATE
3434ARG MERGE_COMMIT_SHA
Original file line number Diff line number Diff line change 1- FROM python:3.9-slim as oss-base
1+ FROM python:3.9-slim-bookworm as oss-base
22
33# Install necessary packages for building the backend
44RUN apt-get update && apt-get install -y --no-install-recommends \
Original file line number Diff line number Diff line change 1- FROM debian:buster
1+ FROM debian:bookworm
22ENV DEBIAN_FRONTEND noninteractive
33RUN apt-get update
4- RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster -pgdg main" > /etc/apt/sources.list.d/pgdg.list
4+ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm -pgdg main" > /etc/apt/sources.list.d/pgdg.list
55RUN apt-get -y install gnupg
66RUN apt-get -y install curl
77RUN apt-get -y install wget
88RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
99RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
1010RUN apt-get update
11- RUN apt-get -y install postgresql-14
12- RUN curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-amd64
13- RUN chmod +x /usr/local/bin/dbmate
11+ RUN apt-get -y install postgresql-15
12+
13+ RUN ARCH=$(dpkg --print-architecture) && \
14+ curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-${ARCH} && \
15+ chmod +x /usr/local/bin/dbmate
16+
1417WORKDIR /
1518RUN mkdir ./db
1619COPY ./db/ ./db/
17- ENV PATH /usr/lib/postgresql/14 /bin:$PATH
20+ ENV PATH /usr/lib/postgresql/15 /bin:$PATH
1821ADD ./dbwait.sh /bin
1922RUN chmod +x /bin/dbwait.sh
You can’t perform that action at this time.
0 commit comments