Skip to content

Commit

Permalink
fix(docker): permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Jan 12, 2024
1 parent 978eb92 commit 036cbaf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions scripts/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/usr/bin/env sh

if [ "$DOCKER" = "true" ]; then
base_dir="/app"
else
Expand Down

0 comments on commit 036cbaf

Please sign in to comment.