From 91a59de0731d2c25165b3bfab1b8c026ab93abaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20M=C3=BCller?= Date: Wed, 7 Apr 2021 11:21:31 +0200 Subject: [PATCH] BETTERZON-49: Creating Dockerfile --- Crawler/Dockerfile | 20 ++++++++++++++++++++ Frontend/src/app/app.module.ts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Crawler/Dockerfile diff --git a/Crawler/Dockerfile b/Crawler/Dockerfile new file mode 100644 index 0000000..b463bd1 --- /dev/null +++ b/Crawler/Dockerfile @@ -0,0 +1,20 @@ +# Base image +FROM python + +# Create directories and copy files +RUN echo 'Creating directory and copying files' +RUN mkdir /crawler +ADD . /crawler +WORKDIR /crawler + +# Install dependencies +RUN echo 'Installing dependencies' +RUN pip install -r requirements.txt + +# Expose ports +RUN echo 'Exposing ports' +EXPOSE 22026 + +# Start API +RUN echo 'Starting API' +CMD ["python3", "main.py"] diff --git a/Frontend/src/app/app.module.ts b/Frontend/src/app/app.module.ts index f9508f9..45105ca 100644 --- a/Frontend/src/app/app.module.ts +++ b/Frontend/src/app/app.module.ts @@ -48,7 +48,7 @@ const cookieConfig: NgcCookieConsentConfig = { }, content: { // Custom message - //message: 'By using our site, you acknowledge that you have read and understand our ', + // message: 'By using our site, you acknowledge that you have read and understand our ', whatAreCookiesLink: 'Learn more', whatAreCookiesHref: 'https://www.cookiesandyou.com/',