-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathselenium_firefox
More file actions
16 lines (16 loc) · 818 Bytes
/
selenium_firefox
File metadata and controls
16 lines (16 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:14.04
RUN apt-get update -y && apt-get install -y firefox python3 python3-pip && pip3 install selenium && apt-get remove -y firefox
RUN export uid=1000 gid=1000 && \
mkdir -p /home/developer && \
echo "developer:x:${uid}:${gid}:Developer,,,:/home/developer:/bin/bash" >> /etc/passwd && \
echo "developer:x:${uid}:" >> /etc/group && \
echo "developer ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/developer && \
chmod 0440 /etc/sudoers.d/developer && \
chown ${uid}:${gid} -R /home/developer && \
wget 'https://ftp.mozilla.org/pub/firefox/releases/27.0/linux-x86_64/en-US/firefox-27.0.tar.bz2' && \
tar -xjf firefox-27.0.tar.bz2 && \
mv firefox /opt/firefox27 && \
ln -s /opt/firefox8/firefox /usr/bin/firefox
USER developer
ENV HOME /home/developer
CMD /usr/bin/python3