mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-08-12 03:48:34 +02:00
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:
30
Dockerfile
Normal file
30
Dockerfile
Normal 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
|
Reference in New Issue
Block a user