-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathDockerfile
executable file
·40 lines (35 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM tensorflow/tensorflow
LABEL maintainer="Nguyen Hoang <[email protected]>"
ENV GECKODRIVER_VER v0.29.0
RUN apt-get update
RUN python3 -m pip install --upgrade pip
RUN apt install -y \
cron \
python3-requests \
python3-flask \
firefox \
&& pip install selenium \
&& pip install Werkzeug==2.0.1 \
&& pip install webdriver-manager \
&& pip install Pillow \
&& pip install python-telegram-bot \
&& pip install urllib3==1.26.6 \
&& pip install chardet==4.0.0 \
&& pip install MarkupSafe==2.0.1 \
&& pip install requests==2.26.0 \
&& pip install flask \
&& pip install pymongo \
&& pip install python-crontab \
&& pip install pyOpenSSL
# Add geckodriver
RUN set -x \
&& curl -sSLO https://github.com/mozilla/geckodriver/releases/download/${GECKODRIVER_VER}/geckodriver-${GECKODRIVER_VER}-linux64.tar.gz \
&& tar zxf geckodriver-*.tar.gz \
&& mv geckodriver /usr/bin/ \
&& rm geckodriver-*.tar.gz
COPY . /opt/In0ri
ADD start.sh /start.sh
RUN chmod 755 /start.sh
EXPOSE 8080 8088
WORKDIR /opt/In0ri/FlaskApp
CMD ["/start.sh"]