2023-01-25 21:34:30 +00:00
|
|
|
FROM postgres:13-bullseye
|
2023-01-18 13:43:10 +00:00
|
|
|
|
|
|
|
RUN set -eux \
|
|
|
|
&& apt-get update \
|
|
|
|
&& export DEBIAN_FRONTEND=noninteractive \
|
|
|
|
&& apt-get install -y curl gpg \
|
|
|
|
&& curl https://build.opensuse.org/projects/home:jfita:numerus/public_key | gpg --dearmor -o /etc/apt/trusted.gpg.d/obs-numerus.gpg \
|
|
|
|
&& echo 'deb [signed-by=/etc/apt/trusted.gpg.d/obs-numerus.gpg] http://download.opensuse.org/repositories/home:/jfita:/numerus/Debian_11/ ./' >> /etc/apt/sources.list.d/numerus.list \
|
|
|
|
&& apt-get remove --purge -y curl gpg \
|
|
|
|
&& apt-get autoremove --purge -y \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get install -y numerus-sqitch numerus-demo \
|
|
|
|
&& ln /usr/share/numerus/demo.sql /docker-entrypoint-initdb.d/01-demo.sql \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
COPY deploy.sh /docker-entrypoint-initdb.d/00-deploy.sh
|