Spaces:
Sleeping
Sleeping
Deploy Polyglot backend with quantized models
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -35,6 +35,9 @@ ENV PORT=7860
|
|
| 35 |
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|
| 36 |
RUN mkdir -p $NLTK_DATA && chmod -R 777 $NLTK_DATA
|
| 37 |
|
|
|
|
|
|
|
|
|
|
| 38 |
# Download models using HF token from environment
|
| 39 |
# HuggingFace Spaces automatically provides HUGGING_FACE_HUB_TOKEN
|
| 40 |
ARG HUGGING_FACE_HUB_TOKEN
|
|
|
|
| 35 |
RUN mkdir -p $HF_HOME && chmod -R 777 $HF_HOME
|
| 36 |
RUN mkdir -p $NLTK_DATA && chmod -R 777 $NLTK_DATA
|
| 37 |
|
| 38 |
+
# Create data directories for learning service
|
| 39 |
+
RUN mkdir -p /app/data/learning/users && chmod -R 777 /app/data
|
| 40 |
+
|
| 41 |
# Download models using HF token from environment
|
| 42 |
# HuggingFace Spaces automatically provides HUGGING_FACE_HUB_TOKEN
|
| 43 |
ARG HUGGING_FACE_HUB_TOKEN
|