From 5e1f5f19f10b91dea53fc18abf6ea19f1684d66a Mon Sep 17 00:00:00 2001 From: Andrew Kvalheim Date: Fri, 30 Aug 2024 17:33:40 -0700 Subject: [PATCH] Correct Docker volume declaration --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8e2e373..99a1931 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,10 +10,12 @@ RUN yarn install --immutable COPY tsconfig.json ./ COPY src ./src RUN yarn build - -# Runtime data COPY data ./data -VOLUME state +# State +RUN mkdir state && chown node:node state +VOLUME /usr/src/app/state + +# Execution USER node CMD yarn start