From 9b3801ba6efdc9ca05b8d9a0117d70d648e1ca2a Mon Sep 17 00:00:00 2001 From: Manuel <30572287+manuel-rw@users.noreply.github.com> Date: Thu, 31 Aug 2023 19:43:41 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Install=20openssl=20layer=20to?= =?UTF-8?q?=20the=20default=20docker=20image?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95dbbccb4..8d3b6a3cf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,7 @@ FROM node:20.5-slim WORKDIR /app +# Define node.js environment variables ENV NEXT_TELEMETRY_DISABLED 1 ENV NODE_ENV production ENV NODE_OPTIONS '--no-experimental-fetch' @@ -9,21 +10,18 @@ COPY next.config.js ./ COPY public ./public COPY package.json ./package.json COPY yarn.lock ./yarn.lock - # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing COPY .next/standalone ./ COPY .next/static ./.next/static - COPY prisma/schema.prisma prisma/schema.prisma - COPY ./scripts/run.sh ./scripts/run.sh -# RUN npm config set unsafe-perm true -# ARG NPM_CONFIG_LOGLEVEL=verbose +# Install dependencies +RUN apt-get update -y && apt-get install -y openssl RUN yarn global add prisma -RUN which prisma +# Expose the default application port EXPOSE 7575 ENV PORT 7575