-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
80 lines (55 loc) · 1.75 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# syntax = docker/dockerfile:1.4.0
FROM debian:sid-slim as build-stage
RUN apt-get update && apt-get install -y --no-install-recommends \
apt-transport-https \
autoconf \
automake \
build-essential \
ca-certificates \
cmake \
curl \
flex \
gawk \
git-core \
libbz2-dev \
libcap2-bin \
libltdl-dev \
libregina3-dev \
libtool \
m4 \
time \
wget \
zlib1g-dev
WORKDIR /build
ADD https://api.github.com/repos/SDL-Hercules-390/gists/git/refs/heads/master version.json
RUN git clone --depth 1 https://github.com/SDL-Hercules-390/gists.git
ADD https://api.github.com/repos/SDL-Hercules-390/hyperion/git/refs/heads/master version.json
RUN git clone --depth 1 https://github.com/SDL-Hercules-390/hyperion.git
WORKDIR /build/gists
RUN ./extpkgs.sh clone c d s t
WORKDIR /build/hyperion
RUN ./configure --enable-extpkgs=/build/gists
RUN make
RUN mkdir -p /build/hyperion-docker
RUN make install DESTDIR=/build/hyperion-docker
WORKDIR /build/
RUN mkdir -p hyperion-docker/DEBIAN
RUN echo "Package: hyperion-docker" >> hyperion-docker/DEBIAN/control
RUN echo "Version: 1.0" >> hyperion-docker/DEBIAN/control
RUN echo $'Section: base\n\
Priority: optional\n\
Architecture: amd64\n\
Depends: libbz2-1.0, libzip4\n\
Maintainer: Your Name <you@email.com>\n\
Description: Hyperion\n\
OS360 emulator from https://github.com/SDL-Hercules-390' >> hyperion-docker/DEBIAN/control
RUN dpkg-deb --build hyperion-docker
FROM debian:sid-slim as hyperion
COPY --from=build-stage /build/hyperion-docker.deb /hyperion-docker.deb
RUN apt-get update && apt-get -y upgrade && apt-get install -y libzip4 procps
RUN mkdir -p /tk4 && \
echo "/usr/local/lib" >> /etc/ld.so.conf.d/usrlocal
RUN dpkg -i /hyperion-docker.deb
RUN ldconfig
WORKDIR /tk4
CMD ./mvs