-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
36 lines (29 loc) · 939 Bytes
/
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
# Phishing Blocker Project - Analytics
# (c)2020 Star Inc.(https://starinc.xyz).
### Select the browser you prefer
# Google Chrome
# FROM selenium/standalone-chrome:latest
# Mozilla Firefox
FROM selenium/standalone-firefox:latest
###
# PB Project Maintainer
LABEL maintainer="SuperSonic<[email protected]>"
# Set working directory
WORKDIR /app
COPY . /app
# Initialize working environment
RUN sudo chown -R seluser:seluser ../app
RUN sudo apt-get update
RUN sudo apt-get upgrade -y
RUN sudo apt-get install -y python3.7 python3-pip libqt5core5a qt5dxcb-plugin
RUN sudo apt-get autoremove -y
RUN python3.7 -m pip install --upgrade pip
RUN python3.7 -m pip install --trusted-host pypi.python.org -r requirements.txt --no-warn-script-location
# Expose port
EXPOSE 2020
# Disable python buffered for display
ENV PYTHONUNBUFFERED true
# Set User PATH
ENV PATH $HOME/.local/bin:$PATH
# Execute Analytics
CMD ["python3.7", "main.py"]