Ali2206 commited on
Commit
5bd3262
·
verified ·
1 Parent(s): 5fbae2f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,10 +1,7 @@
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,15 +14,14 @@ RUN apt-get update && apt-get install -y \
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"]
 
 
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
  && 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"]