Create Dockerfile
Browse files- Dockerfile +44 -0
Dockerfile
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from ubuntu
|
2 |
+
FROM node:16.16.0 as base
|
3 |
+
# Chrome dependency Instalation
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
fonts-liberation \
|
6 |
+
libasound2 \
|
7 |
+
libatk-bridge2.0-0 \
|
8 |
+
libatk1.0-0 \
|
9 |
+
libatspi2.0-0 \
|
10 |
+
libcups2 \
|
11 |
+
libdbus-1-3 \
|
12 |
+
libdrm2 \
|
13 |
+
libgbm1 \
|
14 |
+
libgtk-3-0 \
|
15 |
+
# libgtk-4-1 \
|
16 |
+
libnspr4 \
|
17 |
+
libnss3 \
|
18 |
+
libwayland-client0 \
|
19 |
+
libxcomposite1 \
|
20 |
+
libxdamage1 \
|
21 |
+
libxfixes3 \
|
22 |
+
libxkbcommon0 \
|
23 |
+
libxrandr2 \
|
24 |
+
xdg-utils \
|
25 |
+
libu2f-udev \
|
26 |
+
libvulkan1 \
|
27 |
+
python \
|
28 |
+
python3 \
|
29 |
+
python3-pip \
|
30 |
+
python-pip
|
31 |
+
RUN curl -LO https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
32 |
+
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
|
33 |
+
RUN rm google-chrome-stable_current_amd64.deb
|
34 |
+
# Check chrome version
|
35 |
+
RUN echo "Chrome: " && google-chrome --version
|
36 |
+
CMD ["cd"]
|
37 |
+
RUN cd
|
38 |
+
ADD requirements.txt
|
39 |
+
COPY ["requirements.txt", "app.py"]
|
40 |
+
RUN pip3 install -r requirements.txt
|
41 |
+
CMD ["pip install -r requirements.txt"]
|
42 |
+
CMD ["python app.py"]
|
43 |
+
|
44 |
+
|