Allow self-signed SSL certs

This commit is contained in:
Robert Dyer
2024-08-15 09:57:10 -05:00
parent 2a3929dcd9
commit c57fec9fda
+4 -2
View File
@@ -8,15 +8,17 @@ USER node
WORKDIR /usr/src/app WORKDIR /usr/src/app
# Create the cache directory # 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 the current directory contents into the container at /usr/src/app
COPY . . COPY --chown=node:node . .
# Install any needed packages specified in package.json # Install any needed packages specified in package.json
RUN npm install && npm update RUN npm install && npm update
# Define environment variable # Define environment variable
ENV NODE_ENV=production ENV NODE_ENV=production
# Allow self-signed SSL certs
ENV NODE_TLS_REJECT_UNAUTHORIZED=0
# Run the app when the container launches # Run the app when the container launches
ENTRYPOINT ["tail", "-f", "/dev/null"] ENTRYPOINT ["tail", "-f", "/dev/null"]