Use modules for Dockerfile
Signed-off-by: Petr "Stone" Hracek <phracek@redhat.com>
This commit is contained in:
parent
a480ae18d0
commit
0da0562b9d
4 changed files with 17 additions and 3 deletions
|
|
@ -1,4 +1,4 @@
|
|||
FROM registry.fedoraproject.org/fedora:26
|
||||
FROM baseruntime/baseruntime:latest
|
||||
|
||||
ENV POSTFIX_SMTP_PORT=10025 NAME=postfix ARCH=x86_64
|
||||
LABEL MAINTAINER "Petr Hracek" <phracek@redhat.com>
|
||||
|
|
@ -16,8 +16,10 @@ LABEL summary="Postfix is a Mail Transport Agent (MTA)." \
|
|||
io.openshift.expose-services="10025:postfix" \
|
||||
io.openshift.tags="postfix,mail,mta"
|
||||
|
||||
RUN dnf install -y --setopt=tsflags=nodocs postfix findutils && \
|
||||
dnf -y clean all
|
||||
COPY repos/* /etc/yum.repos.d/
|
||||
RUN microdnf --nodocs --enablerepo fedora install findutils && \
|
||||
microdnf --nodocs --enablerepo postfix install postfix && \
|
||||
microdnf -y clean all
|
||||
|
||||
ADD files /files
|
||||
ADD README.md /
|
||||
|
|
|
|||
4
repos/fedora.repo
Normal file
4
repos/fedora.repo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[fedora]
|
||||
name=fedora
|
||||
baseurl=https://mirrors.nic.cz/fedora/linux/development/26/Everything/x86_64/os/
|
||||
enabled=0
|
||||
4
repos/perl.repo
Normal file
4
repos/perl.repo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[perl]
|
||||
name=perl
|
||||
baseurl=https://kojipkgs.fedoraproject.org/repos/module-fcd86adc7a9c7e0a/latest/x86_64/
|
||||
enabled=0
|
||||
4
repos/postfix.repo
Normal file
4
repos/postfix.repo
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
[postfix]
|
||||
name=postfix
|
||||
baseurl=https://kojipkgs.stg.fedoraproject.org/compose/branched/jkaluza/latest-Fedora-Modular-26/compose/Server/x86_64/os/
|
||||
enabled=0
|
||||
Loading…
Add table
Add a link
Reference in a new issue