build first set of docker container in pipline and place them in the the github registry (#142)

- added a Dockerfile for the thre containers
- added a workflow step to build and placing the container in the
registry
- added a docker-compose.yaml to use the build images
- added a docker compose to build the images locally and a script for
prebuild steps
This commit is contained in:
2023-09-24 18:32:52 +02:00
committed by GitHub
parent 5c8d20f4c2
commit 091e67de79
21 changed files with 447 additions and 47 deletions

30
Dockerfile Normal file
View File

@@ -0,0 +1,30 @@
FROM python:3.11-slim as base
LABEL AUTHOR="AKI Projektseminar 23"
ARG APP_HOME="transparenzregister"
WORKDIR /${APP_HOME}/
USER root
RUN apt update -y && \
apt install git sqlite3 iputils-ping traceroute -y && \
rm -rf /var/lib/apt/lists/*
COPY dist/*.whl dist/
RUN pip install --find-links=dist aki-prj23-transparenzregister --no-cache-dir
FROM base as ingest
RUN pip install --find-links=dist aki-prj23-transparenzregister[ingest] --no-cache-dir && \
rm dist/ -R
FROM base as data-transformation
RUN pip install --find-links=dist aki-prj23-transparenzregister[processing] --no-cache-dir && \
rm dist/ -R
FROM base as web-server
RUN pip install --find-links=dist aki-prj23-transparenzregister[web-server] --no-cache-dir && \
rm dist/ -R
CMD python -m aki_prj23_transparenzregister.ui.company_finance_dash