From 4852ef756eda4ee9ef892a02e66116be2ee73ffa Mon Sep 17 00:00:00 2001 From: Sam Tay Date: Wed, 21 Jun 2017 00:21:52 -0400 Subject: [PATCH] Add dex image --- dex-images/tetris/Dockerfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 dex-images/tetris/Dockerfile diff --git a/dex-images/tetris/Dockerfile b/dex-images/tetris/Dockerfile new file mode 100644 index 0000000..391d9c0 --- /dev/null +++ b/dex-images/tetris/Dockerfile @@ -0,0 +1,30 @@ +FROM haskell:8 + +ENV DEXBUILD_DIR="/build" + +RUN mkdir -p "${DEXBUILD_DIR}" + +WORKDIR ${DEXBUILD_DIR} + +RUN ( \ + git clone "https://github.com/samtay/tetris.git" && \ + cd tetris && \ + git checkout tags/0.1.0 && \ + rm -rf .git && \ + mkdir bin && \ + stack install --local-bin-path bin && \ + true ) + +# +# container runtime configuration +# + +ENTRYPOINT ["/build/tetris/bin/tetris"] + +# +# v1 dex-api +# + +LABEL \ + org.dockerland.dex.api="v1" \ + org.dockerland.dex.docker_flags="--interactive --tty" \