Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG MERGE_COMMIT_SHA


# Build the backend
FROM python:3.9-slim as backend-build
FROM python:3.9-slim-bookworm as backend-build

# Prevents Python from writing pyc files.
ENV PYTHONDONTWRITEBYTECODE=1
Expand All @@ -28,7 +28,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
&& /opt/venv/bin/pip install -r requirements.txt

# Final image
FROM python:3.9-slim
FROM python:3.9-slim-bookworm

ARG BUILD_DATE
ARG MERGE_COMMIT_SHA
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.prebuilt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9-slim as oss-base
FROM python:3.9-slim-bookworm as oss-base

# Install necessary packages for building the backend
RUN apt-get update && apt-get install -y --no-install-recommends \
Expand Down
15 changes: 9 additions & 6 deletions database-docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
FROM debian:buster
FROM debian:bookworm
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ buster-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ bookworm-pgdg main" > /etc/apt/sources.list.d/pgdg.list
RUN apt-get -y install gnupg
RUN apt-get -y install curl
RUN apt-get -y install wget
RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add -
RUN apt-get update
RUN apt-get -y install postgresql-14
RUN curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-amd64
RUN chmod +x /usr/local/bin/dbmate
RUN apt-get -y install postgresql-15

RUN ARCH=$(dpkg --print-architecture) && \
curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/download/v1.16.0/dbmate-linux-${ARCH} && \
chmod +x /usr/local/bin/dbmate

WORKDIR /
RUN mkdir ./db
COPY ./db/ ./db/
ENV PATH /usr/lib/postgresql/14/bin:$PATH
ENV PATH /usr/lib/postgresql/15/bin:$PATH
ADD ./dbwait.sh /bin
RUN chmod +x /bin/dbwait.sh