-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (22 loc) · 838 Bytes
/
Dockerfile
File metadata and controls
30 lines (22 loc) · 838 Bytes
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
# vim: nospell
FROM tmcdonell/accelerate-llvm
MAINTAINER Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
RUN apt-get update \
&& apt-get install -y \
freeglut3-dev \
libfftw3-dev \
libgmp-dev
RUN ln -s /usr/local/cuda/lib64/stubs/libcuda.so /usr/local/cuda/lib64/libcuda.so.1
# Copy over just the cabal and stack file and install dependencies
WORKDIR /opt/accelerate-examples
COPY ./stack-8.10.yaml /opt/accelerate-examples/stack.yaml
COPY ./accelerate-examples.cabal /opt/accelerate-examples/
RUN stack build accelerate-examples \
--only-dependencies \
--flag accelerate-examples:-gui
# Copy over the source files and build
COPY . /opt/accelerate-examples
RUN stack install --flag accelerate-examples:-gui
# https://github.com/tmcdonell/cuda/issues/55
RUN rm /usr/local/cuda/lib64/libcuda.so.1
CMD ["bash"]