From b51b112287f58c9fe1d94cbe071ad50da982d8c4 Mon Sep 17 00:00:00 2001 From: remyvdwereld <86827854+remyvdwereld@users.noreply.github.com> Date: Sat, 22 Jul 2023 23:39:20 +0200 Subject: [PATCH] Test Dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 77bcd9fe6..43aa697f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,9 +12,6 @@ RUN mkdir -p $DIR/builds/production WORKDIR $DIR -# Install ca-certificates to handle SSL certificate verification -RUN apk add --no-cache ca-certificates - # install dependencies RUN npm ci --production --unsafe-perm --ignore-scripts . @@ -32,8 +29,10 @@ RUN mv $DIR/build/* $DIR/builds/acceptance/ # Use the official Nginx image as the final stage FROM nginx:stable-alpine +# Install ca-certificates to handle SSL certificate verification # Install libx11 for Nginx (if needed) -RUN apk update && apk add --no-cache libx11 +RUN apk update && apk add --no-cache ca-certificates && update-ca-certificates && apk add --no-cache libx11 + # Copy the nginx configuration ADD nginx.conf /etc/nginx/nginx.conf