ariji1 commited on
Commit
872f491
·
verified ·
1 Parent(s): f82264f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -6
Dockerfile CHANGED
@@ -3,12 +3,9 @@ FROM python:3.10-slim
3
  # Set working directory
4
  WORKDIR /code
5
 
6
- # Install basic OS tools and build dependencies for llama-cpp-python
7
  RUN apt-get update \
8
- && apt-get install -y --no-install-recommends \
9
- wget \
10
- build-essential \
11
- cmake \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # Copy project files
@@ -22,4 +19,6 @@ RUN pip install --no-cache-dir -U pip wheel setuptools \
22
  EXPOSE 7860
23
 
24
  # Start the FastAPI app
25
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
3
  # Set working directory
4
  WORKDIR /code
5
 
6
+ # Install basic OS tools only (no compiler needed for ctransformers wheels)
7
  RUN apt-get update \
8
+ && apt-get install -y --no-install-recommends wget \
 
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Copy project files
 
19
  EXPOSE 7860
20
 
21
  # Start the FastAPI app
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
23
+
24
+