From 6d3a24fae1e6749d43ca0342da22978dd2738589 Mon Sep 17 00:00:00 2001 From: Travis Shivers Date: Thu, 23 Jul 2020 20:28:20 -0500 Subject: [PATCH] Increase ulimit to try and fix docker error --- .github/workflows/docker.yml | 1 + Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8ce6148f..ecebda4a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -37,6 +37,7 @@ jobs: --build-arg SOURCE_BRANCH=${SOURCE_BRANCH} \ --cache-from "type=local,src=/tmp/.buildx-cache" \ --cache-to "type=local,dest=/tmp/.buildx-cache" \ + --ulimit nofile=65536:65536 \ ${TAGS} --file ./Dockerfile ./ - name: Set up Docker Buildx diff --git a/Dockerfile b/Dockerfile index d6721ab1..1403e4fe 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ FROM node:current-alpine as dependency-stage WORKDIR /app ## Install build toolchain, install node deps and compile native add-ons RUN apk add --no-cache python make g++ -RUN NPM_CONFIG_PREFIX=/app/.npm-global NPM_CONFIG_CACHE=/home/node/.cache npm install --unsafe-perm -g syncloungesocket@2.0.6 nconf +RUN NPM_CONFIG_PREFIX=/app/.npm-global NPM_CONFIG_CACHE=/home/node/.cache npm install --unsafe-perm -g syncloungesocket@2.0.7 nconf COPY docker-entrypoint.sh . COPY config config