From 6d0be34c610ea3d3af315037308b3e2231a1d949 Mon Sep 17 00:00:00 2001 From: Mogyuchi Date: Tue, 5 Dec 2023 17:00:22 +0900 Subject: [PATCH] Pin to Node.js 18.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 18.19.0 では npm v10.2.3 がバンドルされているため、 GitHub Actions 上でのコンテナ構築に失敗するから。 Signed-off-by: Mogyuchi --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0fc1c7b6..9cbecbf0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # syntax=docker/dockerfile:1 -FROM node:18 AS deps +FROM node:18.18.2 AS deps ARG NODE_ENV=production WORKDIR /app COPY ./package*.json ./ RUN npm ci -FROM node:18 AS builder +FROM node:18.18.2 AS builder ARG NODE_ENV=development WORKDIR /app COPY ./build.js ./