mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-02 23:53:13 -04:00
19 lines
431 B
Docker
19 lines
431 B
Docker
FROM python:3.12-slim
|
|
|
|
EXPOSE 9999
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
# Set PYTHONPATH to include /usr/src/app
|
|
ENV PYTHONPATH=/usr/src/app
|
|
|
|
# Copy the zerto exporter into the container
|
|
COPY app /usr/src/app/
|
|
|
|
# Delete uuid.txt file if it exists
|
|
RUN [ -f uuid.txt ] && rm uuid.txt || echo "No uuid.txt file to delete"
|
|
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Entry point for the container
|
|
CMD ["python", "python-node-exporter.py"] |