1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-23 16:24:29 +00:00

Set a proper path for public documents

This commit is contained in:
Pierre Jaury 2018-06-09 15:18:44 +02:00
parent 0700d32a6f
commit d76851732a

View file

@ -14,18 +14,19 @@ RUN apt-get update \
&& ln -sf /usr/bin/composer.phar /usr/bin/composer \
&& rm /tmp/composer.phar
COPY . /var/www/html/
COPY . /var/www/
WORKDIR /var/www/html
WORKDIR /var/www/
RUN install -d -m0755 -o www-data -g www-data \
/var/www/html/storage \
/var/www/html/storage/framework \
/var/www/html/storage/logs \
/var/www/html/storage/framework/sessions \
/var/www/html/storage/framework/views \
/var/www/html/storage/framework/cache && \
composer install --prefer-source --no-interaction
/var/www/storage \
/var/www/storage/framework \
/var/www/storage/logs \
/var/www/storage/framework/sessions \
/var/www/storage/framework/views \
/var/www/storage/framework/cache \
&& composer install --prefer-source --no-interaction \
&& rm -rf html && mv public html
VOLUME ["/var/www/html"]
VOLUME ["/var/www/storage"]
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"