-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 972 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 972 Bytes
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
31
32
33
34
FROM fedora:32
ENV PATH=$HOME/.local/bin/:$PATH \
PYTHONUNBUFFERED=1 \
PYTHONIOENCODING=UTF-8 \
LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
GOPATH='/tmp/go' \
THOTH_ANALYZER_NO_TLS_VERIFY='True'
LABEL io.k8s.description="Thoth Package Extract Base" \
io.k8s.display-name="Thoth: Package Extract Base" \
io.openshift.tags="thoth,python,go,package-extract" \
architecture=x86_64 \
vendor="Red Hat Office of the CTO - AI CoE" \
license="GPLv3"
RUN dnf update -y --setopt='tsflags=nodocs' && \
dnf install -y --setopt='tsflags=nodocs' python-pip go git make skopeo dnf-utils fakeroot fakechroot && \
dnf clean all && \
dnf install -y binutils
COPY ./ /tmp/package-extract
RUN pip install micropipenv \
&& cd /tmp/package-extract \
&& micropipenv install \
&& pip install --no-deps . \
&& rm -rf /tmp/package-extract
USER 1042
CMD ["extract-image"]
ENTRYPOINT ["thoth-package-extract"]