Skip to content

Commit 36199b3

Browse files
committed
initial commit
0 parents  commit 36199b3

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM frolvlad/alpine-gcc
2+
3+
RUN apk add --no-cache ocaml

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2015 Vlad
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
[![Docker Stars](https://img.shields.io/docker/stars/frolvlad/alpine-ocaml.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-ocaml/)
2+
[![Docker Pulls](https://img.shields.io/docker/pulls/frolvlad/alpine-ocaml.svg?style=flat-square)](https://hub.docker.com/r/frolvlad/alpine-ocaml/)
3+
4+
5+
OCaml Docker image
6+
==================
7+
8+
This image is based on Alpine Linux image, which is only a 5MB image, and contains
9+
[OCaml compiler](https://ocaml.org/).
10+
11+
Download size of this image is only:
12+
13+
[![](https://images.microbadger.com/badges/image/frolvlad/alpine-ocaml.svg)](http://microbadger.com/images/frolvlad/alpine-ocaml "Get your own image badge on microbadger.com")
14+
15+
Usage Example
16+
-------------
17+
18+
```bash
19+
$ echo 'print_string "Hello, World!";;' > qq.ml
20+
$ docker run --rm -v "$(pwd):/tmp" frolvlad/alpine-ocaml ocamlopt -cclib --static /tmp/qq.ml -o /tmp/qq
21+
```
22+
23+
Once you have run these commands you will have `qq` executable in your current directory and if you
24+
execute it, you will get printed 'Hello, World!'

0 commit comments

Comments
 (0)