Philipp Horstenkamp d2d4a436f8
Add a cli interface to choose a configuration (#163)
- [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
2023-10-02 20:31:42 +02:00

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"]