forked from openshift/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
27 lines (19 loc) · 783 Bytes
/
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
FROM centos:7 AS base
COPY RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
COPY ostree-master.repo ignition.repo /etc/yum.repos.d/
COPY . /srv/tree/
RUN yum install -y rpm-ostree epel-release && \
yum install -y nginx
COPY nginx.conf /etc/nginx/nginx.conf
RUN cd /srv/tree/ && mkdir build-repo && \
ostree --repo=build-repo init --mode=bare-user && \
mkdir repo && \
ostree --repo=repo init --mode=archive
FROM base
RUN cd /srv/tree && \
rpm-ostree compose tree --repo=/srv/tree/build-repo host.json && \
ostree --repo=repo pull-local build-repo openshift/3.10/x86_64/os && \
ostree --repo=repo summary -u && \
rm -rf build-repo
COPY index.html subdomain.css /srv/tree/repo/
CMD ["nginx", "-c", "/etc/nginx/nginx.conf"]