This commit is contained in:
Leo Wen
2025-12-06 19:04:21 -08:00
parent f595e62e18
commit 0d52090682
+3 -1
View File
@@ -6,11 +6,12 @@ WORKDIR /app
FROM base AS install FROM base AS install
WORKDIR /app WORKDIR /app
# Install build dependencies for native modules (argon2, etc.) # Install build dependencies for native modules (argon2, libpq, etc.)
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
python3 \ python3 \
make \ make \
g++ \ g++ \
libpq-dev \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy package files # Copy package files
@@ -37,6 +38,7 @@ WORKDIR /app
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
openssl \ openssl \
ca-certificates \ ca-certificates \
libpq5 \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Copy necessary files from build stage # Copy necessary files from build stage