-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
26 lines (23 loc) · 976 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
FROM python:3.11-slim-bullseye
LABEL org.label-schema.schema-version "1.0" \
org.label-schema.name "kubesplit" \
org.label-schema.description "kubesplit packaged as a docker image" \
org.label-schema.vcs-url "https://github.com/looztra/kubesplit" \
org.label-schema.vendor "looztra" \
org.label-schema.docker.cmd.help "docker run --rm -v $(pwd):/app/code looztra/kubesplit:TAG help" \
org.label-schema.docker.cmd "docker run --rm -v $(pwd):/app/code looztra/kubesplit:TAG -i input"
ENV PIP_ROOT_USER_ACTION=ignore\
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app/code
COPY wait-for-pypi.sh /app/code
ENTRYPOINT ["kubesplit"]
CMD ["--help"]
ARG GIT_SHA1
ARG GIT_REF
ARG APP_VERSION
LABEL org.label-schema.version ${APP_VERSION} \
org.label-schema.vcs-ref ${GIT_SHA1} \
io.nodevops.git-ref=${GIT_REF}
RUN chmod +x /app/code/wait-for-pypi.sh \
&& /app/code/wait-for-pypi.sh ${APP_VERSION} kubesplit \
&& pip install --no-cache-dir kubesplit==${APP_VERSION}