split install into multiple steps
This commit is contained in:
parent
865b974f38
commit
369aa6a6ed
1 changed files with 16 additions and 4 deletions
20
Dockerfile
20
Dockerfile
|
|
@ -1,10 +1,22 @@
|
|||
FROM debian:latest
|
||||
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
curl gnupg2 ca-certificates lsb-release apt-transport-https \
|
||||
postgresql caddy nodejs npm && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
RUN apt-get update
|
||||
|
||||
RUN apt-get install -y \
|
||||
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 && \
|
||||
echo "host all all 0.0.0.0/0 md5" >> /etc/postgresql/15/main/pg_hba.conf && \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue