Short Description
Clean is a general purpose, state-of-the-art, pure and lazy functional programming language.
Full Description
docker-clean
Dockerfiles for Clean.
Available tags
latest
,2.4-stable
(Linux 64-bit, 'stable release' without iTasks but
with a development version ofclm
to support hierarchical module names)nightly
(includes aninstall_clean.sh
script which can be used to get a
nightly for a specific date` - see below how to derive a Dockerfile for this)
camilstaps/clean:base
is a bootstrap container and should not be used
separately.
How to use
clm
docker run -v /my/.../directory:/root camilstaps/clean clm MainModule
Deriving a new Dockerfile
This builds a docker image in which MainModule
is built and then run.
FROM camilstaps/clean:2.4-stable
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN clm MainModule -o MainModule
CMD ["./MainModule"]
Deriving a new Dockerfile with a nightly
This builds a docker image in which MainModule
is built and then run.
By combining the [un]install_clean.sh
and the clm
calls in one RUN
command, we save space in the Docker cache.
FROM camilstaps/clean:nightly
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
RUN install_clean.sh bundle-complete 2017-10-03 &&\
clm MainModule -o MainModule &&\
uninstall_clean.sh
CMD ["./MainModule"]
Source code
github.com/camilstaps/docker-clean