🐳 preload tiktoken encoding in Dockerfile_ecs (#193)
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user