forked from evicertia/mono-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (34 loc) · 1.18 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
35
36
37
38
39
40
ARG CENTOS_VERSION=7
ARG MONO_VERSION=5.18.1.28-4.1.nw.el${CENTOS_VERSION}
ARG GTKSHARP_VERSION=2.12.26-2.22.nw.el${CENTOS_VERSION}
FROM centos:$CENTOS_VERSION
ARG CENTOS_VERSION
ARG MONO_VERSION
ARG GTKSHARP_VERSION
LABEL version=${MONO_VERSION}
LABEL description="CentOS-${CENTOS_VERSION} based mono base image"
LABEL maintainer="pablo@evicertia.com"
LABEL vendor="evicertia"
WORKDIR /
# Install base stuff..
ADD files/netway-mono.repo /etc/yum.repos.d/
RUN yum -y install openssl ca-certificates redhat-lsb-core epel-release yum-priorities
RUN echo ${MONO_VERSION} > /MONO_VERSION
RUN yum -y --enablerepo=netway-mono install \
git dos2unix rpm-build \
selinux-policy-\* checkpolicy \
mono-core-${MONO_VERSION} \
mono-web-${MONO_VERSION} \
mono-data-${MONO_VERSION} \
mono-data-sqlite-${MONO_VERSION} \
mono-extras-${MONO_VERSION} \
mono-wcf-${MONO_VERSION} \
mono-winforms-${MONO_VERSION} \
mono-winfx-${MONO_VERSION} \
mono-locale-extras-${MONO_VERSION} \
mono-devel-${MONO_VERSION} \
mono-web-devel-${MONO_VERSION} \
gtk-sharp2-${GTKSHARP_VERSION} \
gtk-sharp2-devel-${GTKSHARP_VERSION}
RUN yum --enablerepo=\* clean all
CMD ["/bin/bash"]