-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
30 lines (21 loc) · 854 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
FROM consol/ubuntu-xfce-vnc
# Switch to root user to install additional software
USER 0
RUN apt-get update && apt-get install -y \
python3 python3-pip \
curl wget\
firefox
# install geckodriver
RUN GECKODRIVER_VERSION=`curl https://github.com/mozilla/geckodriver/releases/latest | grep -Po 'v[0-9]+.[0-9]+.[0-9]+'` && \
wget https://github.com/mozilla/geckodriver/releases/download/$GECKODRIVER_VERSION/geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz && \
tar -zxf geckodriver-$GECKODRIVER_VERSION-linux64.tar.gz -C /usr/local/bin && \
chmod +x /usr/local/bin/geckodriver
ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8
ENV APP_HOME /usr/src/app
WORKDIR $APP_HOME
COPY . $APP_HOME/donbot
WORKDIR $APP_HOME/donbot
RUN python3 -m pip install --upgrade pip && pip3 install -r requirements.txt
## switch back to default user
# USER 1000