ci: dockerize setup

This commit is contained in:
Dominik Siebel
2024-09-16 11:48:20 +02:00
committed by Daniel Molkentin
parent c7f725adb8
commit e4f0eedded
7 changed files with 87 additions and 10 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
ARG PYTHON_VERSION=3.12.6
FROM python:${PYTHON_VERSION}-slim
LABEL source="https://github.com/Akkudoktor-EOS/EOS"
ARG APT_OPTS="--yes --auto-remove --no-install-recommends --no-install-suggests"
RUN DEBIAN_FRONTEND=noninteractive \
apt-get update \
&& apt-get install ${APT_OPTS} gcc libhdf5-dev libmariadb-dev pkg-config \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/lib/eos
WORKDIR /opt/eos
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY . .
COPY config.example.py config.py
ENTRYPOINT []
CMD ["python", "flask_server.py"]