Skip to content

Commit 6236c1b

Browse files
MDA2AVclaude
andcommitted
Fix Puma Dockerfile: install build-essential for nio4r native extension
The ruby:3.3-slim image lacks a C compiler, causing nio4r (a Puma dependency) to fail during gem install. Install build-essential for compilation then purge it to keep the image small. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d577b9e commit 6236c1b

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Servers/PumaServer/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
FROM ruby:3.3-slim
2-
RUN gem install puma --no-doc
2+
RUN apt-get update && apt-get install -y --no-install-recommends build-essential && \
3+
gem install puma --no-doc && \
4+
apt-get purge -y build-essential && apt-get autoremove -y && \
5+
rm -rf /var/lib/apt/lists/*
36
COPY src/Servers/PumaServer/config.ru /app/config.ru
47
WORKDIR /app
58
EXPOSE 8080

0 commit comments

Comments
 (0)