-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
34 lines (27 loc) · 1.45 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
30
31
32
33
34
FROM registry.fedoraproject.org/f34/fedora-toolbox:34
ENV NAME=thoth-toolbox VERSION=0 ARCH=x86_64
LABEL com.github.containers.toolbox="true" \
com.github.debarshiray.toolbox="true" \
com.redhat.component="$NAME" \
name="$NAME" \
version="$VERSION" \
architecture="$ARCH" \
usage="This image is meant to be used with the toolbox command" \
summary="This is a Thoth toolbox container" \
maintainer="Thoth Station <aicoe-thoth@redhat.com>"
COPY README.md /
RUN sed -i '/tsflags=nodocs/d' /etc/dnf/dnf.conf
COPY extra-packages /
RUN dnf --disablerepo=rawhide-modular --disablerep=rawhide --disablerepo=fedora-cisco-openh264 --enablerepo=fedora --enablerepo=updates --enablerepo=fedora-modular --enablerepo=updates-modular \
-y install $(<extra-packages)
RUN rm /extra-packages
RUN dnf clean all
RUN dnf --disablerepo=rawhide-modular --disablerep=rawhide --disablerepo=fedora-cisco-openh264 \
--enablerepo=fedora --enablerepo=updates --enablerepo=fedora-modular --enablerepo=updates-modular \
group install -y "Development Tools" && \
dnf --disablerepo=rawhide-modular --disablerep=rawhide --disablerepo=fedora-cisco-openh264 --enablerepo=fedora --enablerepo=updates --enablerepo=fedora-modular --enablerepo=updates-modular \
install -y python3-devel gcc-c++ && \
pip3 install thoth-s2i thamos thoth-glyph && \
dnf group remove -y "Development Tools" && \
dnf remove -y gcc-c++ python3-devel
CMD /bin/sh