updates for docker environments

This commit is contained in:
2023-12-21 12:57:30 -05:00
parent 57a18385f3
commit 21f32e5a31
5 changed files with 19 additions and 68 deletions
+11 -1
View File
@@ -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"]