Fix docker access. Closes #278
Some checks failed
docker-build / platform-excludes (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Run Pytest on Pull Request / test (push) Has been cancelled
docker-build / build (push) Has been cancelled
docker-build / merge (push) Has been cancelled

* Need to start within container with host 0.0.0.0 to access it later
   on host.
This commit is contained in:
Dominique Lasserre
2025-01-24 00:09:28 +01:00
committed by Bobby Noelte
parent 3b142ad514
commit f09658578a
3 changed files with 12 additions and 6 deletions

View File

@@ -28,13 +28,17 @@ COPY requirements.txt .
RUN --mount=type=cache,target=/root/.cache/pip \
pip install -r requirements.txt
COPY src .
COPY pyproject.toml .
RUN mkdir -p src && pip install -e .
COPY src src
USER eos
ENTRYPOINT []
EXPOSE 8503
EXPOSE 8504
CMD ["python", "-m", "akkudoktoreos.server.eos"]
CMD ["python", "src/akkudoktoreos/server/eos.py", "--host", "0.0.0.0"]
VOLUME ["${MPLCONFIGDIR}", "${EOS_CACHE_DIR}", "${EOS_OUTPUT_DIR}", "${EOS_CONFIG_DIR}"]