Skip to content

Commit 2d88946

Browse files
committed
added dockerfile
1 parent 2bc77af commit 2d88946

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ubuntu:latest
2+
3+
RUN DEBIAN_FRONTEND="noninteractive" apt-get update -qy &&\
4+
DEBIAN_FRONTEND="noninteractive" apt-get install haskell-platform haskell-stack git-all -qy &&\
5+
git clone https://github.com/pmbittner/FeatureTraceRecording.git /data/source &&\
6+
cd /data/source &&\
7+
git checkout ArtefactSubmission
8+
9+
WORKDIR /data/source
10+
RUN stack update
11+
RUN stack upgrade
12+
13+
## Enable colours in terminal
14+
ENV TERM="xterm-256color"
15+
## Enable printing utf-8 colours
16+
ENV LANG=C.UTF-8
17+
RUN stack build --copy-bins
18+
19+
## this must be set after stack build to ensure the folder exists
20+
ENV PATH=="/root/.local/bin:${PATH}"
21+
22+
RUN echo "\n\n### DONE ###\n\n"
23+
24+
CMD stack run

0 commit comments

Comments
 (0)