From 3aa5c8d8024d872203bf14e60132501f9ea7fdee Mon Sep 17 00:00:00 2001 From: KPMGE Date: Mon, 12 Sep 2022 21:39:15 -0300 Subject: [PATCH 1/2] :rocket: dockerize application --- .dockerignore | 5 +++++ Dockerfile | 15 +++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..58eaf0d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,5 @@ +.git/ +*.png +local_webscrapping.py +Procfile +webscrapping_test1.py diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..daa81c8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,15 @@ +# base image +FROM python:3.10-alpine + +# sets the working directory inside the container +WORKDIR /rubot + +# copies required files from the host machine into the container +COPY ./requirements.txt . +COPY ./Twitter-Bot/rubot.py . + +# runs the command to install dependencies +RUN pip install -r requirements.txt + +# command that will run when the container starts +CMD [ "python", "./rubot.py" ] From 2a46562d50d3c3f2d6c551009d8b54f3e92540ef Mon Sep 17 00:00:00 2001 From: KPMGE Date: Mon, 12 Sep 2022 21:44:24 -0300 Subject: [PATCH 2/2] :sparkles: add readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e38fe60 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# RuBot + +Applying Web-Scraping to retrieve information from UFES's cafeteria menu, facilitating the acess to such information.