Adapt Dockerfile to package directory structure.

Signed-off-by: Bobby Noelte <b0661n0e17e@gmail.com>
This commit is contained in:
Bobby Noelte 2024-10-06 20:06:47 +02:00 committed by Andreas
parent 2c5c612cab
commit 7c13cb6e1c

View File

@ -16,8 +16,10 @@ RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get install ${APT_OPTS} gcc libhdf5-dev libmariadb-dev pkg-config mariadb-common libmariadb3 \
&& rm -rf /var/lib/apt/lists/* \
&& pip install --no-cache-dir -r requirements.txt \
&& pip install --no-cache-dir build \
&& pip install --no-cache-dir -e . \
&& apt remove ${APT_OPTS} gcc libhdf5-dev libmariadb-dev pkg-config
ENTRYPOINT []
CMD ["python", "flask_server.py"]
CMD ["python", "-m", "akkudoktoreos.flask_server"]