mirror of
https://github.com/recklessop/Zerto_Exporter.git
synced 2026-07-03 07:53:15 -04:00
updates for docker environments
This commit is contained in:
+11
-1
@@ -4,6 +4,16 @@ EXPOSE 9999
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY app/* /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"]
|
||||
Reference in New Issue
Block a user