diff options
author | Jasper Van der Jeugt | 2020-08-04 00:12:25 +0200 |
---|---|---|
committer | Jasper Van der Jeugt | 2020-08-04 00:12:25 +0200 |
commit | a5b0e6716dbc97ac13624b6afae0f0cb7aa6d57b (patch) | |
tree | 2c74829c9c70d28e6597a7bfce2b5bbe925a0c74 /Dockerfile | |
parent | 7e646e1676e08331598ae2b9518f2b1b5f999ba2 (diff) |
Add Dockerfile
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..17b087b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM haskell:8.8 +WORKDIR /opt/cafp +COPY server/cafp.cabal server/stack.yaml* /opt/cafp/ +RUN stack build --only-dependencies +COPY server /opt/cafp +RUN stack build +ENV CAFP_HOSTNAME=0.0.0.0 CAFP_PORT=8002 CAFP_BASE=/cafp +EXPOSE 8002 +CMD stack exec cafp-server |