Commit
Author: Kevin Schoon [kevinschoon@gmail.com]
Hash: 18450425d75b8f414dd30f3ad14dc082239002ed
Timestamp: Sun, 31 Jan 2021 01:25:39 +0000 (3 years ago)

+0 -72 +/-2 browse
remove docker files
1diff --git a/docker/Dockerfile.alpine b/docker/Dockerfile.alpine
2deleted file mode 100644
3index ed99530..0000000
4--- a/docker/Dockerfile.alpine
5+++ /dev/null
6 @@ -1,36 +0,0 @@
7- FROM ocaml/opam2:alpine
8-
9- USER root
10-
11- RUN apk --update-cache add linux-headers m4
12-
13- # install dependencies first to avoid re-installation
14- # when the a non-opam file in the repository changes.
15-
16- COPY note.opam /src/
17-
18- USER opam
19-
20- RUN opam repository set-url default https://opam.ocaml.org \
21- && opam install dune \
22- && cd /src \
23- && opam install --deps-only .
24-
25- USER root
26-
27- COPY . /src/
28-
29- RUN chown -R opam:opam /src
30-
31- USER opam
32-
33- RUN cd /src \
34- && eval "$(opam env)" \
35- && dune subst \
36- && dune build
37-
38- FROM alpine:latest
39-
40- COPY --from=0 /src/_build/default/bin/note.exe /usr/bin/note
41-
42- ENTRYPOINT ["/usr/bin/note"]
43 diff --git a/docker/Dockerfile.debian b/docker/Dockerfile.debian
44deleted file mode 100644
45index b0069bb..0000000
46--- a/docker/Dockerfile.debian
47+++ /dev/null
48 @@ -1,36 +0,0 @@
49- FROM ocaml/opam2:debian-stable
50-
51- USER root
52-
53- RUN apt-get update && apt-get install -yyq m4 pkg-config
54-
55- # install dependencies first to avoid re-installation
56- # when the a non-opam file in the repository changes.
57-
58- COPY note.opam /src/
59-
60- USER opam
61-
62- RUN opam repository set-url default https://opam.ocaml.org \
63- && opam install dune \
64- && cd /src \
65- && opam install --deps-only .
66-
67- USER root
68-
69- COPY . /src/
70-
71- RUN chown -R opam:opam /src
72-
73- USER opam
74-
75- RUN cd /src \
76- && eval "$(opam env)" \
77- && dune subst \
78- && dune build
79-
80- FROM debian:stable
81-
82- COPY --from=0 /src/_build/default/bin/note.exe /usr/bin/note
83-
84- ENTRYPOINT ["/usr/bin/note"]