mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-24 21:42:35 +02:00
- 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
31 lines
838 B
Docker
31 lines
838 B
Docker
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
|