This repository has been archived by the owner on Oct 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
2 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
FROM python:3.8-slim | ||
MAINTAINER Henning Jacobs <[email protected]> | ||
|
||
WORKDIR / | ||
|
||
|
@@ -15,10 +14,14 @@ FROM python:3.8-slim | |
|
||
WORKDIR / | ||
|
||
# copy pre-built packages to this image | ||
COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages | ||
|
||
# now copy the actual code we will execute (poetry install above was just for dependencies) | ||
COPY kube_downscaler /kube_downscaler | ||
|
||
ARG VERSION=dev | ||
|
||
RUN sed -i "s/__version__ = .*/__version__ = '${VERSION}'/" /kube_downscaler/__init__.py | ||
|
||
ENTRYPOINT ["python3", "-m", "kube_downscaler"] |
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ TAG ?= $(VERSION) | |
|
||
default: docker | ||
|
||
.PHONY: | ||
.PHONY: install | ||
install: | ||
poetry install | ||
|
||
|