jainarham commited on
Commit
f5103c7
·
verified ·
1 Parent(s): 084fb33

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +0 -9
Dockerfile CHANGED
@@ -2,28 +2,19 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies - FIXED for newer Debian
6
  RUN apt-get update && apt-get install -y \
7
  libgl1 \
8
  libglib2.0-0 \
9
  libgomp1 \
10
- wget \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Copy requirements first for better caching
14
  COPY requirements.txt .
15
-
16
- # Install Python dependencies
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
- # Download NLTK data
20
  RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger'); nltk.download('brown')"
21
 
22
- # Copy application files
23
  COPY . .
24
 
25
- # Expose the port Hugging Face expects
26
  EXPOSE 7860
27
 
28
- # Run the application
29
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
2
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  libgl1 \
7
  libglib2.0-0 \
8
  libgomp1 \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
11
  COPY requirements.txt .
 
 
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
14
  RUN python -c "import nltk; nltk.download('punkt'); nltk.download('averaged_perceptron_tagger'); nltk.download('brown')"
15
 
 
16
  COPY . .
17
 
 
18
  EXPOSE 7860
19
 
 
20
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]