Spaces:
Sleeping
Sleeping
Ari
commited on
Create Dockerfile
Browse files- Dockerfile +21 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use a Python image as base
|
2 |
+
FROM python:3.10-slim
|
3 |
+
|
4 |
+
# Install dependencies
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
wkhtmltopdf \
|
7 |
+
&& rm -rf /var/lib/apt/lists/*
|
8 |
+
|
9 |
+
# Copy the requirements file
|
10 |
+
COPY requirements.txt .
|
11 |
+
|
12 |
+
# Install Python dependencies
|
13 |
+
RUN pip install -r requirements.txt
|
14 |
+
|
15 |
+
# Copy your app code
|
16 |
+
COPY . /app
|
17 |
+
|
18 |
+
WORKDIR /app
|
19 |
+
|
20 |
+
# Run your app
|
21 |
+
CMD ["python", "app.py"]
|