fix build
Some checks failed
ci/woodpecker/push/publish Pipeline failed

This commit is contained in:
Mylloon 2023-05-16 02:04:12 +02:00
parent ac174c4e83
commit 20e8f4f4a3
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,24 +1,27 @@
# syntax=docker/dockerfile:1 # syntax=docker/dockerfile:1
FROM ocaml/opam:alpine-3.17-ocaml-4.14 AS builder FROM ocaml/opam:alpine-3.18-ocaml-4.14 AS builder
WORKDIR /usr/src/pusk WORKDIR /usr/src/pusk
COPY . . COPY . .
USER root USER root
RUN apk add gmp-dev pcre-dev && \ RUN apk update && \
apk add gmp-dev pcre-dev openssl-dev && \
chown -R opam:opam . chown -R opam:opam .
USER opam USER opam
RUN opam install -y dune cohttp-lwt-unix dotenv twostep lwt_ssl && \ RUN opam install -y dune cohttp-lwt-unix dotenv twostep lwt_ssl yojson core && \
eval $(opam env) && \ eval $(opam env) && \
dune install dune build --profile=release
FROM alpine:3.17 FROM alpine:3.18
WORKDIR /app WORKDIR /app
RUN apk add dumb-init firefox libc6-compat pcre-dev RUN apk update && \
apk add dumb-init firefox libc6-compat pcre-dev && \
rm -rf /var/cache/apk/*
COPY --from=builder /usr/src/pusk/_build/install/default/bin/pusk /app/pusk COPY --from=builder /usr/src/pusk/_build/default/bin/pusk.exe /app/pusk
CMD ["dumb-init", "./pusk"] CMD ["dumb-init", "./pusk"]