From 95dc07a53a9b77b33004691ab24f8b1491a8dbb9 Mon Sep 17 00:00:00 2001 From: Vyacheslav Matyukhin Date: Fri, 1 Nov 2024 15:06:44 -0300 Subject: [PATCH] install openssl with apt --- ops/Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ops/Dockerfile b/ops/Dockerfile index 1ae60ee..71cd36f 100644 --- a/ops/Dockerfile +++ b/ops/Dockerfile @@ -5,8 +5,13 @@ FROM node:$DOCKER_NODE_VERSION AS build WORKDIR /app -# https://github.com/prisma/prisma/issues/16553 -RUN apk add openssl1.1-compat +# Install OpenSSL - necessary for Prisma client +# Mount caches via https://stackoverflow.com/a/72851168 +RUN --mount=type=cache,id=apt-lists,target=/var/lib/apt/lists,sharing=locked \ + --mount=type=cache,id=apt-cache,target=/var/cache/apt,sharing=locked \ + rm -f /etc/apt/apt.conf.d/docker-clean \ + && apt-get update \ + && apt-get install -y openssl # Install pnpm globally RUN npm install -g pnpm