8000 fixed · pacroy/docker-bookstack@66aa6ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 66aa6ac

Browse files
committed
fixed
1 parent a44fabd commit 66aa6ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ RUN apt-get update && apt-get install -y git zlib1g-dev libfreetype6-dev libjpeg
1515
&& wget https://github.com/ssddanbrown/BookStack/archive/v${BOOKSTACK_VERSION}.tar.gz -O ${BOOKSTACK}.tar.gz \
1616
&& tar -xf ${BOOKSTACK}.tar.gz && mv BookStack-${BOOKSTACK_VERSION} ${BOOKSTACK_HOME} && rm ${BOOKSTACK}.tar.gz \
1717
&& cd $BOOKSTACK_HOME && composer install \
18-
&& chown -R 1000090000:1000090000 $BOOKSTACK_HOME \
18+
&& chown -R www-data:www-data $BOOKSTACK_HOME \
1919
&& apt-get -y autoremove \
2020
&& apt-get clean \
2121
&& rm -rf /var/lib/apt/lists/* /var/tmp/* /etc/apache2/sites-enabled/000-*.conf
@@ -33,7 +33,8 @@ EXPOSE 8080
3333

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

36-
RUN chown -R 1000090000:1000090000 public/uploads && chmod -R 775 public/uploads \
36+
RUN chown -R 1000090000:1000090000 $BOOKSTACK_HOME \
37+
&& chown -R 1000090000:1000090000 public/uploads && chmod -R 775 public/uploads \
3738
&& chown -R 1000090000:1000090000 storage/uploads && chmod -R 775 storage/uploads
3839

3940
USER 1000090000:1000090000

0 commit comments

Comments
 (0)
0