mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-06-01 01:54:00 +00:00
@@ -22,7 +22,7 @@ RUN curl -L https://github.com/ggml-org/llama.cpp/archive/refs/tags/b9012.tar.gz
|
||||
# Pull llama.cpp binaries to use during build if needed
|
||||
COPY --from=ghcr.io/ggml-org/llama.cpp:full-cuda /app/lib*.so* /usr/local/lib/
|
||||
|
||||
WORKDIR /workspace/app
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
# Build the C++ pipeline
|
||||
@@ -34,6 +34,8 @@ FROM nvidia/cuda:12.6.3-runtime-ubuntu24.04 AS runtime
|
||||
|
||||
# Install only necessary runtime shared libraries
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
curl \
|
||||
ca-certificates \
|
||||
libboost-json1.83.0 \
|
||||
libboost-program-options1.83.0 \
|
||||
libgomp1 \
|
||||
@@ -41,20 +43,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
zlib1g \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV APP_ROOT=/workspace/app \
|
||||
ENV APP_ROOT=/app \
|
||||
LD_LIBRARY_PATH="/usr/local/lib:${LD_LIBRARY_PATH}"
|
||||
|
||||
WORKDIR /workspace/app/build
|
||||
WORKDIR /app/build
|
||||
|
||||
# Copy only the compiled binaries from the builder
|
||||
COPY --from=builder /workspace/app/build/biergarten-pipeline ./
|
||||
COPY --from=builder /app/build/biergarten-pipeline ./
|
||||
|
||||
# Copy required config files
|
||||
COPY locations.json /workspace/app/build/
|
||||
COPY beer-styles.json /workspace/app/build/
|
||||
COPY locations.json /app/build/
|
||||
COPY beer-styles.json /app/build/
|
||||
|
||||
# Copy prompt templates
|
||||
COPY prompts /workspace/app/prompts
|
||||
COPY prompts /app/prompts
|
||||
|
||||
# Copy only the necessary shared libraries from builder/llama-bin
|
||||
COPY --from=ghcr.io/ggml-org/llama.cpp:full-cuda /app/lib*.so* /usr/local/lib/
|
||||
|
||||
Reference in New Issue
Block a user