From c57fec9fda2b1b2a4157fd1c1942376e60afe820 Mon Sep 17 00:00:00 2001 From: Robert Dyer Date: Thu, 15 Aug 2024 09:57:10 -0500 Subject: [PATCH] Allow self-signed SSL certs --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 09b7574..c358768 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,15 +8,17 @@ USER node WORKDIR /usr/src/app # Create the cache directory -RUN mkdir -p ./cache +RUN mkdir -p ./cache && chown node:node ./cache # Copy the current directory contents into the container at /usr/src/app -COPY . . +COPY --chown=node:node . . # Install any needed packages specified in package.json RUN npm install && npm update # Define environment variable ENV NODE_ENV=production +# Allow self-signed SSL certs +ENV NODE_TLS_REJECT_UNAUTHORIZED=0 # Run the app when the container launches ENTRYPOINT ["tail", "-f", "/dev/null"]