From 036cbaf47e4a39c6398bbf5516ea7ef7139f596d Mon Sep 17 00:00:00 2001 From: Isaac Date: Fri, 12 Jan 2024 00:42:17 +0000 Subject: [PATCH] fix(docker): permissions --- Dockerfile | 3 ++- scripts/start.sh | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 83c8282..67afb67 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,8 @@ COPY --link . . FROM node:18-alpine AS runner RUN apk --no-cache add curl \ && adduser --disabled-password --home /home/container container \ - && mkdir /app + && mkdir /app \ + && chmod -R 777 /app USER container ENV USER=container \ HOME=/home/container \ diff --git a/scripts/start.sh b/scripts/start.sh index f1e1c72..5587bf7 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh + if [ "$DOCKER" = "true" ]; then base_dir="/app" else