Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (14 sloc) 522 Bytes
FROM ocaml/opam2:alpine
RUN sudo apk add --no-cache ca-certificates perl gmp-dev m4
RUN sudo mkdir /app
RUN sudo chown -R $(whoami) /app
ADD reason-pr-labels.opam /app/reason-pr-labels.opam
RUN opam install .
ADD --chown=opam:nogroup . /app
RUN mv src/dune.production src/dune
RUN eval $(opam env) && dune build src/Index.exe
FROM alpine
COPY --from=0 /app/_build/default/src/Index.exe /app
COPY --from=0 /app/github.private-key.pem /github.private-key.pem
CMD /app --port $PORT --app-id $GITHUB_APP_ID
You can’t perform that action at this time.