Philipp Horstenkamp 091e67de79
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
2023-09-24 16:32:52 +00:00

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