This repository has been archived by the owner on Dec 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a Dockerfile for Unison 2.48.4 and Ocaml 4.03
What === Add a Dockerfile for Unison 2.48.4 and Ocaml 4.03. Why === On macOS Sierra these are now the versions installed when using brew, addressing issue #18.
- Loading branch information
Leigh McCulloch
committed
Oct 26, 2016
1 parent
286ff02
commit 02c28fd
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
FROM phusion/baseimage:0.9.16 | ||
CMD ["/sbin/my_init"] | ||
|
||
MAINTAINER Leigh McCulloch | ||
|
||
# Upload Unison for building | ||
COPY container / | ||
|
||
# Allow setting these on build | ||
ARG UNISON_VERSION=2.48.4 | ||
ARG OCAML_VERSION=4.03 | ||
|
||
# Build and install Unison versions then cleanup | ||
RUN apt-get update -y \ | ||
&& curl -LO http://download.opensuse.org/repositories/home:ocaml/xUbuntu_14.04/Release.key \ | ||
&& apt-key add - < Release.key \ | ||
&& apt-get update -y \ | ||
&& dependencies-install.sh \ | ||
&& unison-install.sh \ | ||
&& dependencies-purge.sh \ | ||
&& rm -rf /var/lib/{apt,dpkg,cache,log}/ /tmp/* /var/tmp/* | ||
|
||
# Set default Unison configuration | ||
ENV UNISON_WORKING_DIR=/unison | ||
|
||
# Set working directory to be the home directory | ||
WORKDIR /root | ||
|
||
# Setup unison to run as a service | ||
VOLUME $UNISON_WORKING_DIR | ||
EXPOSE 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters