We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d024053 + 21d159d commit c57ea74Copy full SHA for c57ea74
1 file changed
make/main/Dockerfile
@@ -28,6 +28,9 @@ RUN uv sync --no-cache-dir $(test -n "$MIRROR" && echo "-i $MIRROR") && \
28
COPY sdk /opt/sdk
29
RUN uv pip install --no-cache-dir /opt/sdk $(test -n "$MIRROR" && echo "-i $MIRROR") && \
30
uv cache clean
31
+
32
+# Pre-download tiktoken cl100k_base model to avoid network issues during runtime
33
+RUN uv run python -c "import tiktoken; enc = tiktoken.get_encoding('cl100k_base')"
34
# Layer 2: copy backend code
35
COPY backend /opt/backend
36
@@ -40,4 +43,4 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
40
43
WORKDIR /opt
41
44
42
45
# Expose the service port
-EXPOSE 5010
46
+EXPOSE 5010
0 commit comments