🐳 preload tiktoken encoding in Dockerfile_ecs (#193)

This commit is contained in:
Shion Ichikawa
2025-10-22 23:28:40 +09:00
committed by GitHub
parent d86e64eed3
commit 18b68bd3a7

View File

@@ -14,6 +14,10 @@ RUN groupadd -r appuser && useradd -r -g appuser appuser && \
USER appuser
# Preload tiktoken encoding: https://github.com/aws-samples/bedrock-access-gateway/issues/118
ENV TIKTOKEN_CACHE_DIR=/app/.cache/tiktoken
RUN python3 -c 'import tiktoken_ext.openai_public as tke; tke.cl100k_base()'
ENV PORT=8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \