Spaces:
Sleeping
Sleeping
Damien Benveniste
commited on
Commit
·
ac0d581
1
Parent(s):
6eb29f4
modified
Browse files- Dockerfile +7 -4
- README.md +2 -0
Dockerfile
CHANGED
@@ -1,12 +1,16 @@
|
|
1 |
# Use the official vLLM image as the base image
|
2 |
FROM vllm/vllm-openai:latest
|
3 |
|
4 |
-
|
|
|
|
|
5 |
ENV XDG_CACHE_HOME="/tmp/cache"
|
|
|
|
|
6 |
|
7 |
# Create cache directories and set permissions
|
8 |
-
RUN mkdir -p /tmp/
|
9 |
-
chmod 777 /tmp/
|
10 |
|
11 |
# Set the working directory
|
12 |
WORKDIR /app
|
@@ -21,7 +25,6 @@ EXPOSE 8000
|
|
21 |
# Set the entrypoint
|
22 |
ENTRYPOINT ["/app/entrypoint.sh"]
|
23 |
|
24 |
-
|
25 |
# FROM python:3.9
|
26 |
|
27 |
# # Create a non-root user
|
|
|
1 |
# Use the official vLLM image as the base image
|
2 |
FROM vllm/vllm-openai:latest
|
3 |
|
4 |
+
# Set environment variables
|
5 |
+
# ENV HUGGING_FACE_HUB_TOKEN="your_hf_token_here"
|
6 |
+
ENV HF_HOME="/tmp/huggingface"
|
7 |
ENV XDG_CACHE_HOME="/tmp/cache"
|
8 |
+
ENV NUMBA_CACHE_DIR="/tmp/numba_cache"
|
9 |
+
ENV OUTLINES_CACHE_DIR="/tmp/outlines_cache"
|
10 |
|
11 |
# Create cache directories and set permissions
|
12 |
+
RUN mkdir -p /tmp/huggingface /tmp/cache /tmp/numba_cache /tmp/outlines_cache && \
|
13 |
+
chmod -R 777 /tmp/huggingface /tmp/cache /tmp/numba_cache /tmp/outlines_cache
|
14 |
|
15 |
# Set the working directory
|
16 |
WORKDIR /app
|
|
|
25 |
# Set the entrypoint
|
26 |
ENTRYPOINT ["/app/entrypoint.sh"]
|
27 |
|
|
|
28 |
# FROM python:3.9
|
29 |
|
30 |
# # Create a non-root user
|
README.md
CHANGED
@@ -5,6 +5,8 @@ colorFrom: yellow
|
|
5 |
colorTo: yellow
|
6 |
sdk: docker
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
5 |
colorTo: yellow
|
6 |
sdk: docker
|
7 |
pinned: false
|
8 |
+
base_path: /v1
|
9 |
+
app_port: 8000
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|