Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -7,15 +7,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 7 |
g++ python3 python3-pip \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
|
|
|
| 10 |
RUN pip3 install --no-cache-dir \
|
| 11 |
-
fastapi uvicorn tiktoken psutil httpx pydantic
|
| 12 |
|
| 13 |
WORKDIR /app
|
| 14 |
|
| 15 |
COPY inference.cpp .
|
| 16 |
COPY main.py .
|
| 17 |
COPY index.html .
|
| 18 |
-
COPY model.bin .
|
| 19 |
|
| 20 |
RUN g++ -O3 -march=x86-64 -mavx2 -mfma -fopenmp -ffast-math -std=c++17 \
|
| 21 |
-o inference inference.cpp && chmod +x inference
|
|
|
|
| 7 |
g++ python3 python3-pip \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# Fix 1: Added huggingface-hub here
|
| 11 |
RUN pip3 install --no-cache-dir \
|
| 12 |
+
fastapi uvicorn tiktoken psutil httpx pydantic huggingface-hub
|
| 13 |
|
| 14 |
WORKDIR /app
|
| 15 |
|
| 16 |
COPY inference.cpp .
|
| 17 |
COPY main.py .
|
| 18 |
COPY index.html .
|
| 19 |
+
# Fix 2: Removed 'COPY model.bin .' from here
|
| 20 |
|
| 21 |
RUN g++ -O3 -march=x86-64 -mavx2 -mfma -fopenmp -ffast-math -std=c++17 \
|
| 22 |
-o inference inference.cpp && chmod +x inference
|