-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathDockerfile
29 lines (25 loc) · 1.05 KB
/
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
FROM registry.access.redhat.com/ubi8/python-39:1
LABEL \
summary="A tool for processing operator manifests" \
description="Use the operator-manifest binary within the image to extract, resolve, and replace image references in ClusterServiceVersion files." \
io.k8s.description="Use the operator-manifest binary within the image to extract, resolve, and replace image references in ClusterServiceVersion files." \
io.k8s.display-name="operator-manifest" \
maintainer="https://github.com/containerbuildsystem" \
vcs-url="https://github.com/containerbuildsystem/operator-manifest.git" \
# Clear out the vcs-ref from the parent image
vcs-ref=""
USER 0
RUN dnf install -y \
--setopt=deltarpm=0 \
--setopt=install_weak_deps=false \
--setopt=tsflags=nodocs \
skopeo \
&& dnf clean all
USER 1001
WORKDIR /opt/app-root/src
COPY . .
RUN \
pip install -r requirements.txt --no-cache-dir --no-deps --require-hashes && \
pip install . --no-deps --no-cache-dir
WORKDIR /opt/app-root/workdir
CMD ["operator-manifest", "--help"]