forked from chrisdone-archive/duet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
22 lines (14 loc) · 752 Bytes
/
Dockerfile
File metadata and controls
22 lines (14 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM frolvlad/alpine-gcc as base
RUN apk add --no-cache ghc curl git
RUN curl -L https://github.com/nh2/stack/releases/download/v1.6.5/stack-prerelease-1.9.0.1-x86_64-unofficial-fully-static-musl > /usr/bin/stack
RUN chmod +x /usr/bin/stack
RUN git clone https://github.com/chrisdone/duet.git --depth 1 && cd duet && git checkout 186d4dbf85f23e28862fce7e8160adddfdb8d36f
RUN cd duet && stack update
RUN apk add --no-cache zlib-dev
RUN cd duet && stack build --system-ghc --dependencies-only
RUN cd duet && git pull && git checkout f6c19caf0cb9182dae665ff47c68c27001763fd9
RUN cd duet && stack install --system-ghc --fast
FROM alpine:3.9
RUN apk add --no-cache gmp libffi
COPY --from=base /root/.local/bin/duet /usr/bin/duet
ENTRYPOINT ["duet"]