File tree Expand file tree Collapse file tree 1 file changed +12
-11
lines changed
example-apps/chatbot-rag-app Expand file tree Collapse file tree 1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -5,24 +5,25 @@ COPY frontend ./frontend
55RUN cd frontend && yarn install
66RUN cd frontend && REACT_APP_API_HOST=/api yarn build
77
8- FROM python:3.12-slim
8+ # Use an alpine image to make the runtime smaller
9+ FROM python:3.12-alpine
10+
11+ RUN apk add --no-cache \
12+ # grpcio, a dependency of vertexai.
13+ linux-headers g++ \
14+ # shapely, a dependency of vertexai.
15+ geos \
16+ # tiktoken, used in index_data.py for encoding.
17+ rust cargo
918
1019WORKDIR /app
1120RUN mkdir -p ./frontend/build
1221COPY --from=build-step ./app/frontend/build ./frontend/build
13- RUN mkdir ./api
14- RUN mkdir ./data
15-
16- RUN apt-get update && apt-get install -y \
17- build-essential \
18- curl \
19- software-properties-common \
20- git \
21- && rm -rf /var/lib/apt/lists/*
22-
2322
2423COPY requirements.txt ./requirements.txt
2524RUN pip3 install -r ./requirements.txt
25+
26+ RUN mkdir -p ./api ./data
2627COPY api ./api
2728COPY data ./data
2829
You can’t perform that action at this time.
0 commit comments