Skip to content

Commit

Permalink
actual change
Browse files Browse the repository at this point in the history
Signed-off-by: Adrian Cole <[email protected]>
  • Loading branch information
codefromthecrypt committed Feb 25, 2025
1 parent a316fda commit 1c98088
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions example-apps/chatbot-rag-app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,25 @@ COPY frontend ./frontend
RUN cd frontend && yarn install
RUN cd frontend && REACT_APP_API_HOST=/api yarn build

FROM python:3.12-slim
# Use an alpine image to make the runtime smaller
FROM python:3.12-alpine

RUN apk add --no-cache \
# grpcio, a dependency of vertexai.
linux-headers g++ \
# shapely, a dependency of vertexai.
geos \
# tiktoken, used in index_data.py for encoding.
rust cargo

WORKDIR /app
RUN mkdir -p ./frontend/build
COPY --from=build-step ./app/frontend/build ./frontend/build
RUN mkdir ./api
RUN mkdir ./data

RUN apt-get update && apt-get install -y \
build-essential \
curl \
software-properties-common \
git \
&& rm -rf /var/lib/apt/lists/*


COPY requirements.txt ./requirements.txt
RUN pip3 install -r ./requirements.txt

RUN mkdir -p ./api ./data
COPY api ./api
COPY data ./data

Expand Down

0 comments on commit 1c98088

Please sign in to comment.