mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-06-21 18:03:54 +02:00
build: Dockerize apps/fetch_news.py as ingestor
This commit is contained in:
14
Dockerfile
14
Dockerfile
@ -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"
|
||||
|
Reference in New Issue
Block a user