Ali2206 commited on
Commit
8b2f9a1
·
verified ·
1 Parent(s): 219a358

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,7 +1,10 @@
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /app
4
 
 
5
  RUN apt-get update && apt-get install -y \
6
  latexmk \
7
  texlive-latex-recommended \
@@ -14,14 +17,15 @@ RUN apt-get update && apt-get install -y \
14
  && apt-get clean \
15
  && rm -rf /var/lib/apt/lists/*
16
 
 
17
  COPY requirements.txt .
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
 
20
  COPY . .
21
 
22
- # Ensure .env is copied
23
- COPY .env ./
24
-
25
  EXPOSE 7860
26
 
 
27
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # Use official Python image
2
  FROM python:3.10
3
 
4
+ # Set working directory
5
  WORKDIR /app
6
 
7
+ # Install system packages (LaTeX, fonts, and compiler tools)
8
  RUN apt-get update && apt-get install -y \
9
  latexmk \
10
  texlive-latex-recommended \
 
17
  && apt-get clean \
18
  && rm -rf /var/lib/apt/lists/*
19
 
20
+ # Install Python dependencies
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
24
+ # Copy app code
25
  COPY . .
26
 
27
+ # Expose FastAPI port
 
 
28
  EXPOSE 7860
29
 
30
+ # Start FastAPI app
31
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]