Dockerfile 649 B

123456789101112131415161718192021222324252627282930
  1. FROM python:3.12.6
  2. RUN mkdir -p /data
  3. RUN mkdir -p /conf
  4. RUN mkdir -p /app
  5. RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
  6. RUN pip install poetry
  7. COPY ./config.yaml /conf/
  8. COPY example.json /data/otel.json
  9. COPY ./pyproject.toml /app
  10. COPY ./README.md /app
  11. WORKDIR /app
  12. RUN poetry config virtualenvs.in-project true
  13. RUN poetry install
  14. COPY oteldatareplay /app/oteldatareplay
  15. RUN poetry install
  16. COPY kafka-python /app/kafka-python
  17. RUN /app/.venv/bin/pip install /app/kafka-python
  18. #ENTRYPOINT ["tail" , "-f", "/dev/null"]
  19. ENTRYPOINT ["/app/.venv/bin/python" , "-m", "oteldatareplay", "-c", "/conf/config.yaml"]