File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,22 @@ RUN gem build llm-docs-builder.gemspec
3838# Stage 2: Runtime
3939FROM ruby:4.0-alpine
4040
41- # Install runtime dependencies only
41+ # Install runtime dependencies and build tools for native extensions
4242RUN apk add --no-cache \
4343 ca-certificates \
44- tzdata
44+ tzdata \
45+ libxml2 \
46+ libxslt
4547
46- # Copy built gem and install it
48+ # Copy built gem and install it (needs build tools for nokogiri)
4749COPY --from=builder /gem/llm-docs-builder-*.gem /tmp/
48- RUN gem install /tmp/llm-docs-builder-*.gem --no-document && \
49- rm /tmp/llm-docs-builder-*.gem
50+ RUN apk add --no-cache --virtual .build-deps \
51+ build-base \
52+ libxml2-dev \
53+ libxslt-dev && \
54+ gem install /tmp/llm-docs-builder-*.gem --no-document && \
55+ rm /tmp/llm-docs-builder-*.gem && \
56+ apk del .build-deps
5057
5158# Set working directory for user files
5259WORKDIR /workspace
You can’t perform that action at this time.
0 commit comments