mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-04-22 17:12:55 +02:00
- [x] add a cli to the webserver to take env variables into account - [x] add a cli to the data processing that takes enviromental variable as a valid source into account - [x] rework the cli for the reset sql command - [x] rework the cli for the copying of sql data from one db to another
32 lines
803 B
Docker
32 lines
803 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 -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
|
|
|
|
ENTRYPOINT ["webserver", "ENV"]
|
|
CMD ["--level", "DEBUG"]
|