Skip to content

Instantly share code, notes, and snippets.

@CarstenKoenig
Last active April 16, 2018 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CarstenKoenig/2ce8ca9f6c4401fe2b3472127dabaa89 to your computer and use it in GitHub Desktop.
Save CarstenKoenig/2ce8ca9f6c4401fe2b3472127dabaa89 to your computer and use it in GitHub Desktop.
temporärer Haskell-Build Container
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