-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·29 lines (22 loc) · 832 Bytes
/
Dockerfile
File metadata and controls
executable file
·29 lines (22 loc) · 832 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
FROM centos:latest
MAINTAINER Buttetsu Batou <doubledense@gmail.com>
# Install deps
RUN yum -y clean expire-cache
RUN yum -y install deltarpm epel-release && yum clean all && rm -fr /var/cache/yum
RUN yum -y update && rm -fr /var/cache/yum
RUN yum repolist
RUN yum -y install gcc gnutls-devel mkisofs isomd5sum rpm-build yum-utils createrepo \
curl bsdtar && yum clean all && rm -fr /var/cache/yum
# Manually build and install recent version of wget
WORKDIR /tmp
RUN curl https://ftp.gnu.org/gnu/wget/wget-1.19.5.tar.gz --output /tmp/wget.tar.gz \
&& tar zxvf wget.tar.gz && rm -v wget.tar.gz && mv wget* wget && pushd /tmp/wget \
&& ./configure && make install && rm -fr /tmp/wget
VOLUME /cache
VOLUME /output
COPY app /app
RUN chmod +x /app/*.sh
COPY configs /configs
COPY keys /keys
WORKDIR /cache
CMD ["/app/build.sh"]