From 2658538e20e7eb6eb5fbf86651bb2095dc9d9f5e Mon Sep 17 00:00:00 2001 From: Mylloon Date: Thu, 11 Jul 2024 12:19:52 +0200 Subject: [PATCH] update dependencies --- Dockerfile | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 413550b..9f7def9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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