From 4e1b1a2c5cb4c2c52f1fed3d9ff72385e9ffcfe2 Mon Sep 17 00:00:00 2001 From: Kaede Fujisaki Date: Sat, 16 Nov 2024 15:00:29 +0000 Subject: [PATCH] Change copy timing --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 33e7257..3c54412 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,12 +2,13 @@ FROM node:22-alpine VOLUME /app/storage WORKDIR /app -COPY . . RUN apk add --no-cache bash ffmpeg imagemagick tzdata \ && cp /usr/share/zoneinfo/Asia/Tokyo /etc/localtime \ && apk del --purge tzdata +COPY . . + RUN npm install -g npm@latest \ && (cd client && npm ci && npm run build) \ && (cd server && npm ci && npm run build)