Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Project
build/
dist/

*.sqlite3

# Tools
.ruff_cache/

# Python
.venv/
__pycache__/
*.egg-info/
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM python:3.12-slim

COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/

WORKDIR /app

ADD . /app

ENV PATH="/app/.venv/bin:$PATH"

RUN uv sync --locked

EXPOSE 8080

CMD uv run espminer-optim
13 changes: 13 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:

dashboard:
image: espminer-optim:latest
build:
context: .
dockerfile: Dockerfile
container_name: espminer-optim-dashboard
volumes:
- .:/app/
ports:
- 8080:8080
command: uv run optuna-dashboard sqlite:///espminer-optim-db.sqlite3