Add dex image

This commit is contained in:
Sam Tay 2017-06-21 00:21:52 -04:00
parent 89f93ef142
commit 4852ef756e

View file

@ -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" \