update dependencies
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending

This commit is contained in:
Mylloon 2024-07-11 12:19:52 +02:00
parent 93df514683
commit 2658538e20
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -1,12 +1,11 @@
# syntax=docker/dockerfile:1
FROM ocaml/opam:alpine-3.19-ocaml-5.1 AS builder
FROM ocaml/opam:alpine-3.20-ocaml-5.2 AS builder
WORKDIR /usr/src/pusk
COPY . .
USER root
RUN apk update && \
apk add gmp-dev pcre-dev openssl-dev && \
RUN apk add gmp-dev pcre-dev openssl-dev && \
chown -R opam:opam .
USER opam
@ -14,13 +13,12 @@ RUN opam install -y dune cohttp-lwt-unix dotenv twostep lwt_ssl yojson core && \
eval $(opam env) && \
dune build --profile=release
FROM alpine:3.18
FROM alpine:3.20
WORKDIR /app
RUN apk update && \
apk add dumb-init firefox libc6-compat pcre-dev && \
rm -rf /var/cache/apk/*
RUN apk add --no-cache \
dumb-init firefox libc6-compat pcre-dev
COPY --from=builder /usr/src/pusk/_build/default/bin/main.exe /app/pusk
COPY --from=builder /usr/src/pusk/LICENSE /app/pusk