diff --git a/CHANGELOG.md b/CHANGELOG.md index 120ed47..90593da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [2.6.2] - 2023-09-01 ### Fixed - Issue [#73](https://github.com/phsmith/rundeck_exporter/issues/73), fix VERSION file path. +- VERSION not found in docker image ## [2.6.1] - 2023-06-01 diff --git a/Dockerfile b/Dockerfile index f354f43..0236831 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,9 +14,10 @@ LABEL maintainer="Phillipe Smith " \ org.label-schema.version=$VERSION \ org.label-schema.schema-version="1.0" -COPY VERSION requirements.txt / -COPY rundeck_exporter.py /usr/bin/rundeck_exporter +COPY VERSION requirements.txt /app/ -RUN pip install --no-cache-dir --disable-pip-version-check -r requirements.txt +RUN pip install --no-cache-dir --disable-pip-version-check -r /app/requirements.txt -ENTRYPOINT ["/usr/bin/rundeck_exporter"] +COPY rundeck_exporter.py /app/ + +ENTRYPOINT ["/app/rundeck_exporter.py"]