Skip to content

Commit

Permalink
fix: VERSION not found in docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
phsmith committed Sep 1, 2023
1 parent 7af1dbd commit 4408355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ LABEL maintainer="Phillipe Smith <[email protected]>" \
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"]

0 comments on commit 4408355

Please sign in to comment.