build: Dockerize apps/fetch_news.py as ingestor

This commit is contained in:
TrisNol
2023-11-11 13:19:23 +01:00
parent 170056bf58
commit 5dcf8ecf55
5 changed files with 23 additions and 4 deletions

View File

@ -24,9 +24,23 @@ FROM base as ingest
LABEL PART="DATA_INGESTOR"
### Install Chrome ###
# Update the package lists
RUN apt-get update
# Install wget and unzip
RUN apt-get install -y wget unzip
# Install Google Chrome
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
RUN pip install --find-links=dist aki-prj23-transparenzregister[ingest] --no-cache-dir && \
rm dist/ -R
ENTRYPOINT ["fetch-news-schedule", "ENV"]
CMD ["--level", "DEBUG"]
FROM base as data-transformation
LABEL PART="DATA-TRANSFORMATION"