From 25389824203e293a9838fa88eadc82136a767ae2 Mon Sep 17 00:00:00 2001 From: Phu Tu Date: Tue, 26 Sep 2023 15:42:11 +0200 Subject: [PATCH] Create uploads directory inside container in advance to prevent "Error: EACCES: permission denied" --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index efa84d4..3ee070b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ ENV NODE_ENV production WORKDIR /app +RUN mkdir uploads + RUN chown -R node:node /app COPY --chown=node:node . .