Browse Source

working files

pull/73/head
Marco Matos 6 years ago
parent
commit
95751423be
No known key found for this signature in database GPG Key ID: BE467F4AA6EC41F3
  1. 25
      Dockerfile

25
Dockerfile

@ -31,15 +31,15 @@ FROM ubuntu:bionic
vim vim
# creating user # creating user
ENV user username # ENV user username
RUN export uid=1000 gid=1000 && \ # RUN export uid=1000 gid=1000 && \
mkdir -p /home/${user} && \ # mkdir -p /home/${user} && \
echo "${user}:x:${uid}:${gid}:${user},,,:/home/${user}:/bin/bash" >> /etc/passwd && \ # echo "${user}:x:${uid}:${gid}:${user},,,:/home/${user}:/bin/bash" >> /etc/passwd && \
echo "${user}:x:${uid}:" >> /etc/group && \ # echo "${user}:x:${uid}:" >> /etc/group && \
echo "${user} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${user} && \ # echo "${user} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${user} && \
chmod 0440 /etc/sudoers.d/${user} && \ # chmod 0440 /etc/sudoers.d/${user} && \
chown ${uid}:${gid} -R /home/${user} && \ # chown ${uid}:${gid} -R /home/${user} && \
usermod -aG sudo ${user} # usermod -aG sudo ${user}
# Install Chrome # Install Chrome
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
@ -74,6 +74,7 @@ COPY local.conf /etc/fonts/local.conf
RUN git clone https://github.com/weskerfoot/DeleteFB.git RUN git clone https://github.com/weskerfoot/DeleteFB.git
WORKDIR ./DeleteFB WORKDIR ./DeleteFB
RUN pip3 install -r requirements.txt RUN pip3 install -r requirements.txt
CMD python3 -m ./deletefb/deletefb.py # RUN pip3 install selenium oathlib attrs pybloom_live
RUN pip3 install attrs pybloom_live
USER ${user} RUN pip3 install --user selenium
CMD python3 -m deletefb.deletefb
Loading…
Cancel
Save