File size: 566 Bytes
ae7776c
 
ba202aa
 
 
 
 
 
 
 
 
f1c634b
 
 
 
 
 
 
ae7776c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM nampham11062002/chatbot-api

# Create cache directory and set permissions
RUN mkdir -p /app/.cache/huggingface/hub && \
    chmod -R 777 /app/.cache

# Set environment variables for Hugging Face cache
ENV HF_HOME=/app/.cache/huggingface
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/hub
ENV HF_DATASETS_CACHE=/app/.cache/huggingface/datasets

# Create and set permissions for Opik config directory
RUN mkdir -p /app/.opik && \
    chmod -R 777 /app/.opik
ENV OPIK_CONFIG_DIR=/app/.opik

EXPOSE 7860

CMD ["/app/.venv/bin/python", "-m", "src.infastructure.api"]