bittorrent-benchmarks/docker/bittorrent-benchmarks.Dockerfile
2024-12-01 23:12:49 -03:00

16 lines
363 B
Docker

FROM python:3.12-slim
RUN pip install poetry && poetry config virtualenvs.create false
RUN mkdir /opt/bittorrent-benchmarks
WORKDIR /opt/bittorrent-benchmarks
COPY pyproject.toml poetry.lock ./
RUN poetry install --no-root
COPY . .
RUN poetry install
ENTRYPOINT ["/usr/local/bin/bittorrent-benchmarks", "run", "/opt/bittorrent-benchmarks/experiments.yaml"]