-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding version number env param to image
- Loading branch information
1 parent
308d34d
commit a943430
Showing
3 changed files
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,12 @@ RUN apt-get clean | |
# get some credit | ||
LABEL maintainer="[email protected]" | ||
|
||
# get the build argument that has the version | ||
ARG APP_VERSION=$(APP_VERSION) | ||
|
||
# now add the version arg value into a ENV param | ||
ENV APP_VERSION=$APP_VERSION | ||
|
||
# Copy in just the requirements first for caching purposes | ||
COPY requirements.txt requirements.txt | ||
RUN pip install -r requirements.txt | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters