Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dockerfile for building #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.git/
.dockerignore
Dockerfile
/src/BlodwenPaths.idr
**/*.ibc
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM base/archlinux
RUN pacman -Sy --noconfirm idris make clang chicken racket
ENV IDRIS_CC=clang
ADD . /blodwen
RUN cd /blodwen && make blodwen PREFIX=/opt/blodwen && make install PREFIX=/opt/blodwen
FROM debian
RUN apt-get update && apt-get install libgmp10 && apt-get clean autoclean && apt-get autoremove --yes && rm -rf /var/lib/{apt,dpkg,cache,log}/
COPY --from=0 /opt/blodwen /opt/blodwen
CMD ["/opt/blodwen/bin/blodwen"]
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,16 @@ play. Good luck :).

(Why "Blodwen"? The answer is here: http://ivortheengine.wikia.com/wiki/Idris)

Docker
======

You can build and run a Docker image with Blodwen using the following shell commands:
```bash
docker build -t blodwen .
docker run -it blodwen
```


Things still missing
====================

Expand Down