diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffc3446..7a2a2d7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -66,12 +66,12 @@ jobs: echo "PACKAGE_VERSION=$(grep '"version"' package.json | cut -d '"' -f 4 | head -n 1)" >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v3 with: platforms: 'arm64' - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Login to DockerHub uses: docker/login-action@v2 @@ -80,7 +80,7 @@ jobs: password: ${{ github.event.inputs.docker_token }} - name: Build and publish Full Version to Docker Hub - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: . push: true @@ -106,7 +106,7 @@ jobs: NPM_TOKEN: ${{ github.event.inputs.npm_token }} - name: Build and publish Light Version to Docker Hub - uses: docker/build-push-action@v4 + uses: docker/build-push-action@v5 with: context: ./light file: ./light/Dockerfile diff --git a/Dockerfile_light b/Dockerfile_light index e2f24f2..4a9a667 100644 --- a/Dockerfile_light +++ b/Dockerfile_light @@ -12,10 +12,13 @@ RUN set -ex; \ apt-get -qq update; \ apt-get -y --no-install-recommends install \ ca-certificates \ - wget; \ - wget -qO- https://deb.nodesource.com/setup_18.x | bash; \ - apt-get install -y nodejs; \ - apt-get -y remove wget; \ + curl \ + gnupg; \ + mkdir -p /etc/apt/keyrings; \ + curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \ + echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_18.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list; \ + apt-get -qq update; \ + apt-get -y remove curl gnupg; \ apt-get -y --purge autoremove; \ apt-get clean; \ rm -rf /var/lib/apt/lists/*; @@ -33,7 +36,7 @@ WORKDIR /data COPY / /usr/src/app RUN cd /usr/src/app; \ - npm install --omit=dev; \ + npm install --omit=dev --maxsockets 1; \ chown -R root:root /usr/src/app; \ chmod +x /usr/src/app/docker-entrypoint.sh;