Spaces:
Sleeping
Sleeping
Update Dockerfile (#3)
Browse files- Update Dockerfile (a9f2a838f4d7dee9e9b14e38386f56f27c7cbca1)
- Create start.sh (636a34d880f926d83f9e15e878cf361ed593fdec)
- Update start.sh (20823cee4a0d7c8c4f25956c5d76bacb2a9e915c)
- Dockerfile +3 -7
- start.sh +6 -0
Dockerfile
CHANGED
@@ -24,10 +24,6 @@ COPY . /app
|
|
24 |
ENV MODEL_REPO=TheBloke/phi-2-GGUF
|
25 |
ENV MODEL_FILE=phi-2.Q4_K_M.gguf
|
26 |
|
27 |
-
|
28 |
-
RUN
|
29 |
-
|
30 |
-
'uvicorn app:app --host 0.0.0.0 --port 7860' > entrypoint.sh && \
|
31 |
-
chmod +x entrypoint.sh
|
32 |
-
|
33 |
-
CMD ["./entrypoint.sh"]
|
|
|
24 |
ENV MODEL_REPO=TheBloke/phi-2-GGUF
|
25 |
ENV MODEL_FILE=phi-2.Q4_K_M.gguf
|
26 |
|
27 |
+
COPY start.sh .
|
28 |
+
RUN chmod +x start.sh
|
29 |
+
CMD ["./start.sh"]
|
|
|
|
|
|
|
|
start.sh
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/bin/bash
|
2 |
+
echo "Downloading model..."
|
3 |
+
python download_model.py
|
4 |
+
|
5 |
+
echo "Starting API server..."
|
6 |
+
uvicorn app:app --host 0.0.0.0 --port 7860
|