-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1648 from PrefectHQ/1638-optimize-docker-image
Reduce docker image size
- Loading branch information
Showing
5 changed files
with
198 additions
and
64 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
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 |
---|---|---|
@@ -1,8 +1,20 @@ | ||
ARG PYTHON_VERSION=3.6 | ||
ARG PYTHON_VERSION=${PYTHON_VERSION:-3.6} | ||
FROM python:${PYTHON_VERSION}-slim | ||
|
||
FROM python:${PYTHON_VERSION} | ||
LABEL maintainer="help@prefect.io" | ||
ARG GIT_POINTER=master | ||
RUN apt update && apt install -y gcc git && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install git+https://github.com/PrefectHQ/prefect.git@${GIT_POINTER}#egg=prefect[kubernetes] | ||
ARG PREFECT_VERSION | ||
RUN pip install git+https://github.com/PrefectHQ/prefect.git@${PREFECT_VERSION}#egg=prefect[kubernetes] | ||
RUN mkdir /root/.prefect/ | ||
|
||
ARG GIT_SHA | ||
ARG BUILD_DATE | ||
|
||
LABEL maintainer="help@prefect.io" | ||
LABEL io.prefect.python-version=${PYTHON_VERSION} | ||
LABEL org.label-schema.schema-version = "1.0" | ||
LABEL org.label-schema.name="prefect" | ||
LABEL org.label-schema.url="https://www.prefect.io/" | ||
LABEL org.label-schema.version=${PREFECT_VERSION} | ||
LABEL org.label-schema.vcs-ref=${GIT_SHA} | ||
LABEL org.label-schema.build-date=${BUILD_DATE} |
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
Oops, something went wrong.