Skip to content
Snippets Groups Projects
Commit 4acc2935 authored by Eduardo Trujillo's avatar Eduardo Trujillo
Browse files

Add a Dockerfile

parent 8f12b296
No related branches found
No related tags found
No related merge requests found
# Build
FROM fpco/stack-build:lts-14.17 as build
RUN mkdir /opt/build
COPY . /opt/build
RUN cd /opt/build && stack install --system-ghc
# Runtime
FROM ubuntu:20.04
RUN mkdir -p /opt/espresso
ARG BINARY_PATH
WORKDIR /opt/espresso
RUN apt-get update && apt-get install -y \
ca-certificates \
libgmp-dev
COPY --from=build /root/.local/bin/espresso .
CMD ["/opt/espresso/espresso"]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment