Ze101 commited on
Commit
a26ace6
·
verified ·
1 Parent(s): 12f7318

Rename setup.sh to Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +21 -0
  2. setup.sh +0 -3
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ texlive \
6
+ texlive-latex-extra \
7
+ texlive-fonts-recommended \
8
+ pandoc \
9
+ wkhtmltopdf \
10
+ && apt-get clean
11
+
12
+ # Install Python dependencies
13
+ COPY requirements.txt requirements.txt
14
+ RUN pip install --no-cache-dir -r requirements.txt
15
+
16
+ # Set the working directory
17
+ WORKDIR /app
18
+ COPY . .
19
+
20
+ # Run the Gradio app
21
+ CMD ["python", "app.py"]
setup.sh DELETED
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- # Install pdflatex
3
- apt-get update && apt-get install -y texlive texlive-latex-extra pandoc