mirror of
https://github.com/Akkudoktor-EOS/EOS.git
synced 2025-08-26 15:31:14 +00:00
ci: dockerize setup
This commit is contained in:
committed by
Daniel Molkentin
parent
c7f725adb8
commit
e4f0eedded
25
Dockerfile
Normal file
25
Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user