FROM debian:stable EXPOSE 8080 COPY debian.sources.list /etc/apt/sources.list ENV PGVERSION=15 RUN apt-get update && apt-get install -y \ postgresql-$PGVERSION # make sure we're not killed by odd port reconfigurations # (no idea where they come from) RUN sed -ie 's/port = 543./port = 5432/' /etc/postgresql/$PGVERSION/main/postgresql.conf # GAVOSETTINGS make the package ignore the /etc/gavo.rc that would # make it futz around with /var/gavo-inputs, which does not exist at this # point RUN /usr/bin/pg_ctlcluster $PGVERSION main start && \ apt-get update && \ su - postgres -c "createuser -s root" && \ DEBIAN_FRONTEND=noninteractive GAVOSETTINGS=/nothing apt-get install -y gavodachs2-server subversion && \ apt-get clean && \ /usr/bin/pg_ctlcluster $PGVERSION main stop COPY docker-init / ENTRYPOINT ["./docker-init"] #ENTRYPOINT ["/bin/bash"]