db/.gitea/Dockerfile.ci-runner
Orion Kindel 0b9c597ca4
Some checks failed
migrate-devel / migrate-devel (push) Failing after 7s
migrate-stage / migrate-stage (push) Successful in 5s
chore: fix ci
2023-06-28 11:27:14 -05:00

23 lines
1.1 KiB
Docker

FROM node:20-bookworm
ENV PIP_BREAK_SYSTEM_PACKAGES 1
RUN apt-get update && apt-get upgrade -y
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata \
&& apt-get install -y curl ca-certificates gnupg postgresql-common \
&& YES=y sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh \
&& apt-get install -y postgresql-15
RUN apt-get update \
&& install -m 0755 -d /etc/apt/keyrings \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg \
&& chmod a+r /etc/apt/keyrings/docker.gpg \
&& echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null \
&& apt-get update \
&& apt-get install -y docker-ce-cli docker-compose-plugin
RUN set -x \
&& apt-get install -y python3 python3-pip \
&& pip install psycopg2-binary \
&& pip install migra