snackshell commited on
Commit
7ca4953
·
verified ·
1 Parent(s): d76eec6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -19
Dockerfile CHANGED
@@ -1,30 +1,17 @@
1
- # Use lightweight Python image
2
  FROM python:3.9-slim
3
 
4
- # Install system dependencies (fonts + essentials)
5
  RUN apt-get update && apt-get install -y \
6
- fonts-dejavu \
7
- fonts-freefont-ttf \
 
 
8
  wget \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set working directory
12
  WORKDIR /app
 
13
 
14
- # Install Python dependencies first (for layer caching)
15
- COPY requirements.txt .
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Copy application files
19
- COPY app.py .
20
-
21
- # Download a nice font (optional)
22
- RUN wget https://github.com/googlefonts/roboto/raw/main/src/hinted/Roboto-Black.ttf -O /usr/share/fonts/truetype/Roboto-Bold.ttf \
23
- && fc-cache -f -v
24
-
25
- # Set environment variables
26
- ENV GRADIO_SERVER_NAME=0.0.0.0
27
- ENV GRADIO_SERVER_PORT=7860
28
-
29
- # Run the application
30
  CMD ["python", "app.py"]
 
 
1
  FROM python:3.9-slim
2
 
3
+ # Install Ethiopian fonts and dependencies
4
  RUN apt-get update && apt-get install -y \
5
+ fonts-noto \
6
+ fonts-noto-extra \
7
+ fonts-noto-cjk \
8
+ fonts-noto-ethiopic \
9
  wget \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
12
  WORKDIR /app
13
+ COPY . .
14
 
 
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  CMD ["python", "app.py"]