Skip to content

Commit 1c98088

Browse files
actual change
Signed-off-by: Adrian Cole <[email protected]>
1 parent a316fda commit 1c98088

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

example-apps/chatbot-rag-app/Dockerfile

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,25 @@ COPY frontend ./frontend
55
RUN cd frontend && yarn install
66
RUN 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

1019
WORKDIR /app
1120
RUN mkdir -p ./frontend/build
1221
COPY --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

2423
COPY requirements.txt ./requirements.txt
2524
RUN pip3 install -r ./requirements.txt
25+
26+
RUN mkdir -p ./api ./data
2627
COPY api ./api
2728
COPY data ./data
2829

0 commit comments

Comments
 (0)