-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
29 lines (17 loc) · 743 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
FROM selenium/node-firefox:3.141.59-20200409
ENV USER=seluser
ENV PATH="${PATH}:/home/${USER}/.local/bin"
USER $USER:$USER
WORKDIR /home/$USER
# copy all files from current directory (we don't want to copy collected data)
COPY --chown=$USER:$USER ./*\.* ./
COPY --chown=$USER:$USER ./pywikimm ./pywikimm
# install pip
RUN sudo apt-get update && sudo apt-get -y install python3-pip
RUN python3 -m pip install --upgrade pip
RUN sudo apt-get -y install git
RUN python3 -m pip install -U setuptools
RUN python3 -m pip install -r requirements.txt
RUN python3 -m pip install git+https://github.com/OlehOnyshchak/RedditScore.git
# TODO: try to workaround because mounted drive has root owner
CMD (chown $USER data; python3 docker_main.py)