Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Commit

Permalink
minor clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
hjacobs committed Dec 23, 2019
1 parent 23c449a commit ca50cc9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
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 /

Expand All @@ -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"]
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ TAG ?= $(VERSION)

default: docker

.PHONY:
.PHONY: install
install:
poetry install

Expand Down

0 comments on commit ca50cc9

Please sign in to comment.