From d4d9420fc3f498444e9a00ecc240666d6b48b5c5 Mon Sep 17 00:00:00 2001 From: Marco Matos Date: Mon, 8 Jul 2019 08:54:29 +0000 Subject: [PATCH] saving status --- Dockerfile | 41 +++++++++++++++++++++++++++++++++++++++++ sources.list | 13 +++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 Dockerfile create mode 100644 sources.list diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2fc8cab --- /dev/null +++ b/Dockerfile @@ -0,0 +1,41 @@ +# docker build -t DeleteFB . && \ +# docker run -ti --rm \ +# -e DISPLAY=$DISPLAY \ +# -v /tmp/.X11-unix:/tmp/.X11-unix \ +# DeleteFB + + +FROM ubuntu:bionic + +# Update and apt install + # add your own sources.list file here in order to speed up the build + ADD sources.list /etc/apt/sources.list + + RUN apt-get update && \ + apt-get install -y firefox \ + git \ + python3 \ + python3-pip \ + libcanberra-gtk-module \ + curl \ + sudo \ + vim + +# creating user + ENV user username + RUN export uid=1000 gid=1000 && \ + mkdir -p /home/${user} && \ + echo "${user}:x:${uid}:${gid}:${user},,,:/home/${user}:/bin/bash" >> /etc/passwd && \ + echo "${user}:x:${uid}:" >> /etc/group && \ + echo "${user} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/${user} && \ + chmod 0440 /etc/sudoers.d/${user} && \ + chown ${uid}:${gid} -R /home/${user} && \ + usermod -aG sudo ${user} + +# delete FB repo + RUN pip3 install --user delete-facebook-posts + RUN pip3 install --user git+https://github.com/weskerfoot/DeleteFB.git + RUN git clone https://github.com/weskerfoot/DeleteFB.git + WORKDIR ./DeleteFB + RUN pip3 install -r requirements.txt + CMD python3 -m ./deletefb/deletefb.py \ No newline at end of file diff --git a/sources.list b/sources.list new file mode 100644 index 0000000..e81c8f6 --- /dev/null +++ b/sources.list @@ -0,0 +1,13 @@ +###### Ubuntu Main Repos +deb http://pl.archive.ubuntu.com/ubuntu/ bionic main restricted universe +deb-src http://pl.archive.ubuntu.com/ubuntu/ bionic main restricted universe + +###### Ubuntu Update Repos +deb http://pl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe +deb http://pl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe +deb http://pl.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe +deb http://pl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe +deb-src http://pl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe +deb-src http://pl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe +deb-src http://pl.archive.ubuntu.com/ubuntu/ bionic-proposed main restricted universe +deb-src http://pl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe