forked from inconvergent/weir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
33 lines (23 loc) · 786 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
28
29
30
31
# This image is only intended to run the tests
FROM ubuntu:latest AS base
RUN apt-get update &&\
apt-get dist-upgrade -y &&\
apt-get install -y sbcl curl gcc libpng-dev
WORKDIR /opt
RUN curl 'https://beta.quicklisp.org/quicklisp.lisp' > /opt/quicklisp.lisp
RUN sbcl --noinform --load /opt/quicklisp.lisp\
--eval '(quicklisp-quickstart:install :path "/opt/quicklisp")'\
--eval '(sb-ext:quit)'
RUN mkdir -p /root/quicklisp &&\
ln -s /opt/quicklisp/setup.lisp /root/quicklisp/setup.lisp
RUN mkdir -p /opt/data
RUN apt-get remove curl -y &&\
apt-get autoremove -y &&\
apt-get autoclean -y
from base AS build
WORKDIR /opt
ADD src /opt/src
ADD test /opt/test
ADD weir.asd /opt
ADD docker-run-tests.sh /opt
CMD ["bash", "./docker-run-tests.sh"]