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
11
11
12
12
13
13
# Build the backend
14
- FROM python:3.9-slim as backend-build
14
+ FROM python:3.9-slim-bookworm as backend-build
15
15
16
16
# Prevents Python from writing pyc files.
17
17
ENV PYTHONDONTWRITEBYTECODE=1
@@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
28
28
&& /opt/venv/bin/pip install -r requirements.txt
29
29
30
30
# Final image
31
- FROM python:3.9-slim
31
+ FROM python:3.9-slim-bookworm
32
32
33
33
ARG BUILD_DATE
34
34
ARG 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
2
2
3
3
# Install necessary packages for building the backend
4
4
RUN 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
2
2
ENV DEBIAN_FRONTEND noninteractive
3
3
RUN 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
5
5
RUN apt-get -y install gnupg
6
6
RUN apt-get -y install curl
7
7
RUN apt-get -y install wget
8
8
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
9
9
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
10
10
RUN 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
+
14
17
WORKDIR /
15
18
RUN mkdir ./db
16
19
COPY ./db/ ./db/
17
- ENV PATH /usr/lib/postgresql/14 /bin:$PATH
20
+ ENV PATH /usr/lib/postgresql/15 /bin:$PATH
18
21
ADD ./dbwait.sh /bin
19
22
RUN chmod +x /bin/dbwait.sh
You can’t perform that action at this time.
0 commit comments