-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
53 lines (36 loc) · 1.08 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
FROM ubuntu:latest
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get -y update
RUN apt-get -y install dosbox
RUN apt-get -y install curl
RUN apt-get -y install zip unzip
RUN apt-get -y install python python-flask
ENV SDL_VIDEODRIVER dummy
# Install OLDDOS.EXE utils.
RUN mkdir -p /root/dos
WORKDIR /root/dos
# Using two sources since TravisCI seems to have trouble connecting to archive.org.
RUN curl \
-L \
-o "./olddos.exe" \
"https://web.archive.org/web/20120215074213/http://download.microsoft.com/download/win95upg/tool_s/1.0/w95/en-us/olddos.exe" \
|| \
curl \
-L \
-o "./olddos.exe" \
"http://www.pcxt-micro.com/download/olddos.exe"
ADD olddos.exe.sha1 ./olddos.exe.sha1
RUN sha1sum -c ./olddos.exe.sha1
RUN zip -J "./olddos.exe"
RUN yes | unzip "./olddos.exe"
RUN rm "./olddos.exe"
# DosBox config file
RUN mkdir -p /root/.dosbox
COPY dosbox.conf "/root/.dosbox/dosbox-0.74.conf"
# Program itself
COPY MORSE.BAS "/root/dos/MORSE.BAS"
# The proxy
RUN mkdir -p /root/proxy
COPY proxy.py /root/proxy/proxy.py
WORKDIR /root/proxy
CMD [ "python", "proxy.py" ]