Skip to content

Commit be24bb0

Browse files
committed
Add build tools 和 native extension 依賴
1 parent 0fe364b commit be24bb0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Dockerfile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ RUN apt-get update && apt-get install -y --no-install-recommends libjemalloc2 \
99
&& rm -rf /var/lib/apt/lists/*
1010
ENV LD_PRELOAD=/usr/lib/libjemalloc.so.2
1111

12-
ARG BUNDLER_VERSION=2.4.20
12+
# 安裝 build tools 和 native extension 依賴
13+
RUN apt-get update && apt-get install -y --no-install-recommends \
14+
build-essential \
15+
libpq-dev \
16+
libffi-dev \
17+
&& rm -rf /var/lib/apt/lists/*
18+
19+
ARG BUNDLER_VERSION=2.4.22
1320
RUN gem install -N bundler -v ${BUNDLER_VERSION}
1421

1522
ARG NODE_VERSION=18.18.0

0 commit comments

Comments
 (0)