From ce6d70b325988b0faf5c382dce03747cfd7193ee Mon Sep 17 00:00:00 2001 From: chenos Date: Tue, 19 Nov 2024 23:38:01 +0800 Subject: [PATCH] feat: install postgresql-client --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3ebdd9ce2..bbb01d364 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,7 +48,13 @@ RUN cd /app \ FROM node:20.13-bullseye-slim -RUN apt-get update && apt-get install -y nginx + +RUN apt-get update && apt-get install -y nginx libaio1 \ + && apt-get install -y --no-install-recommends postgresql-common gnupg \ + && /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y \ + && apt-get install -y --no-install-recommends postgresql-client-16 \ + && rm -rf /var/lib/apt/lists/* + RUN rm -rf /etc/nginx/sites-enabled/default COPY ./docker/nocobase/nocobase.conf /etc/nginx/sites-enabled/nocobase.conf COPY --from=builder /app/nocobase.tar.gz /app/nocobase.tar.gz