8000 Updated group for container user · pacroy/docker-bookstack@1337566 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1337566

Browse files
committed
Updated group for container user
1 parent 2b1a5bd commit 1337566

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ EXPOSE 80
3232

3333
VOLUME ["$BOOKSTACK_HOME/public/uploads","$BOOKSTACK_HOME/public/storage"]
3434

35-
RUN echo "Setting folder permissions for uploads" \
36-
&& chown -R www-data:www-data public/uploads && chmod -R 775 public/uploads \
37-
&& chown -R www-data:w BAC8 ww-data storage/uploads && chmod -R 775 storage/uploads
38-
39-
USER 1001
35+
USER 1001:www-data
4036

4137
ENTRYPOINT ["/docker-entrypoint.sh"]
4238

docker-entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ php artisan key:generate
109109

110110
php artisan migrate --force
111111

112-
#echo "Setting folder permissions for uploads"
113-
#chown -R www-data:www-data public/uploads && chmod -R 775 public/uploads
114-
#chown -R www-data:www-data storage/uploads && chmod -R 775 storage/uploads
112+
echo "Setting folder permissions for uploads"
113+
chown -R www-data:www-data public/uploads && chmod -R 775 public/uploads
114+
chown -R www-data:www-data storage/uploads && chmod -R 775 storage/uploads
115115

116116
php artisan cache:clear
117117

0 commit comments

Comments
 (0)
0