Last active
April 16, 2018 12:34
-
-
Save CarstenKoenig/2ce8ca9f6c4401fe2b3472127dabaa89 to your computer and use it in GitHub Desktop.
temporärer Haskell-Build Container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fpco/stack-build:lts-11 as builder | |
ENV BUILD=/app | |
RUN mkdir -p $BUILD | |
COPY . $BUILD | |
WORKDIR $BUILD | |
RUN stack install --local-bin-path ./dist | |
FROM ubuntu:16.04 | |
RUN apt-get update | |
RUN apt-get install --yes libgmp-dev | |
RUN apt-get install --yes libpq-dev | |
WORKDIR /app | |
COPY --from=builder /app/dist . | |
CMD ["/app/Test-exe"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment