split install into multiple steps

This commit is contained in:
Pablo Martin 2025-03-19 18:51:26 +01:00
parent 865b974f38
commit 369aa6a6ed

View file

@ -1,10 +1,22 @@
FROM debian:latest FROM debian:latest
# Install dependencies # Install dependencies
RUN apt-get update && apt-get install -y \ RUN apt-get update
curl gnupg2 ca-certificates lsb-release apt-transport-https \
postgresql caddy nodejs npm && \ RUN apt-get install -y \
rm -rf /var/lib/apt/lists/* curl gnupg2 ca-certificates lsb-release apt-transport-https
RUN apt-get install -y \
postgresql
RUN apt-get install -y \
caddy
RUN apt-get install -y \
nodejs npm
RUN rm -rf /var/lib/apt/lists/*
RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf && \ RUN echo "listen_addresses='*'" >> /etc/postgresql/15/main/postgresql.conf && \
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf && \ echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf && \