From 44901b206af7da1bfceacb01286533eca21a62be Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sat, 25 Nov 2023 15:58:41 +0100 Subject: [PATCH] try to upgrade to latest node version (#120) Reviewed-on: https://git.mylloon.fr/ConfrerieDuKassoulait/Botanique/pulls/120 Co-authored-by: Mylloon Co-committed-by: Mylloon --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a4b65be..8813bc6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -FROM node:19.8.1-alpine3.17 +FROM node:21.2.0-alpine3.18 ENV DOCKERIZED=1 RUN mkdir /config @@ -12,7 +12,9 @@ WORKDIR /app COPY --chown=node:node . . -RUN npm ci --omit=dev +# UV_USE_IO_URING=0 may be a fix to `'node': Text file busy` +# https://github.com/nodejs/docker-node/issues/1912#issuecomment-1594233686 +RUN UV_USE_IO_URING=0 npm ci --omit=dev RUN npx tsc RUN rm -r src/ tsconfig.json