bbc-basic: Create a suitable Dockerfile and adapt "run" script.
[jackhill/mal.git] / bbc-basic / Dockerfile
1 FROM ubuntu:18.04
2
3 ##########################################################
4 # General requirements for testing or common across many
5 # implementations
6 ##########################################################
7
8 RUN apt-get -y update
9
10 # Required for running tests
11 RUN apt-get -y install make python
12
13 # Some typical implementation and test requirements
14 RUN apt-get -y install curl libreadline-dev libedit-dev
15
16 RUN mkdir -p /mal
17 WORKDIR /mal
18
19 ##########################################################
20 # Specific implementation requirements
21 ##########################################################
22
23 RUN sed 's/^deb/deb-src/' \
24 < /etc/apt/sources.list > /etc/apt/sources.list.d/deb-src.list
25 RUN apt-get update
26 RUN apt-get build-dep -y brandy
27 RUN cd /tmp && apt-get source brandy && cd brandy-* && \
28 make -f makefile.text && cp sbrandy /usr/bin/sbrandy && \
29 cd /tmp && rm -rf brandy*