Skip to content
Merged
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
8 changes: 2 additions & 6 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
FROM python:3.11-slim

WORKDIR /app
# Dependencies
# Install all dependencies (including dev)
RUN pip install --no-cache-dir poetry
COPY pyproject.toml poetry.lock ./

RUN poetry config virtualenvs.create false \
&& poetry install --only main --no-root --no-interaction --no-ansi

# Dev dependencies
RUN pip install black flake8
&& poetry install --no-root --no-interaction --no-ansi

ENV PYTHONPATH="${PYTHONPATH}:/app"

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ For developers who prefer not to install Python locally, a Docker-based developm
# Run the example
docker compose -f docker-compose.dev.yml run --rm pycheckwatt-dev python examples/example.py

# Run the tests
docker compose -f docker-compose.dev.yml run --rm pycheckwatt-dev pytest

# Clean up containers
docker compose -f docker-compose.dev.yml down
```
Expand Down
Loading
Loading