fix(docker): permissions

This commit is contained in:
Isaac 2024-01-12 00:42:17 +00:00
parent 978eb92781
commit 036cbaf47e
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33
2 changed files with 3 additions and 1 deletions

View File

@ -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 \

View File

@ -1,4 +1,5 @@
#!/usr/bin/env sh
if [ "$DOCKER" = "true" ]; then
base_dir="/app"
else