Spaces:
Sleeping
Sleeping
Create Dockerfile
Browse files- Dockerfile +20 -0
Dockerfile
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.9-slim
|
2 |
+
|
3 |
+
RUN apt-get update && apt-get install -y
|
4 |
+
wget
|
5 |
+
curl
|
6 |
+
unzip
|
7 |
+
google-chrome-stable
|
8 |
+
&& rm -rf /var/lib/apt/lists/*
|
9 |
+
|
10 |
+
RUN CHROME_DRIVER_VERSION=$(curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE)
|
11 |
+
&& wget -N https://chromedriver.storage.googleapis.com/$CHROME_DRIVER_VERSION/chromedriver_linux64.zip -P /tmp/
|
12 |
+
&& unzip -o /tmp/chromedriver_linux64.zip -d /tmp/
|
13 |
+
&& chmod +x /tmp/chromedriver
|
14 |
+
&& mv /tmp/chromedriver /usr/local/bin/chromedriver
|
15 |
+
|
16 |
+
COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt
|
17 |
+
|
18 |
+
COPY app.py .
|
19 |
+
|
20 |
+
CMD ["python", "app.py"]
|