forked from PrefectHQ/prefect
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (26 loc) · 901 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
ARG PYTHON_VERSION=${PYTHON_VERSION}
FROM python:${PYTHON_VERSION}-slim
# Build Arguments
ARG PREFECT_VERSION
ARG EXTRAS=kubernetes
ARG GIT_SHA
ARG BUILD_DATE
# Set system locale
ENV LC_ALL C.UTF-8
ENV LANG C.UTF-8
# Image Labels
LABEL maintainer="[email protected]"
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}
RUN apt update && \
apt install -y gcc git && \
mkdir /root/.prefect/ && \
pip install --no-cache-dir git+https://github.com/PrefectHQ/prefect.git@${PREFECT_VERSION}#egg=prefect[${EXTRAS}] && \
apt remove -y git && \
apt clean && apt autoremove -y && \
rm -rf /var/lib/apt/lists/*