mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02:00
Set a proper path for public documents
This commit is contained in:
parent
0700d32a6f
commit
d76851732a
1 changed files with 11 additions and 10 deletions
|
@ -14,18 +14,19 @@ RUN apt-get update \
|
||||||
&& ln -sf /usr/bin/composer.phar /usr/bin/composer \
|
&& ln -sf /usr/bin/composer.phar /usr/bin/composer \
|
||||||
&& rm /tmp/composer.phar
|
&& 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 \
|
RUN install -d -m0755 -o www-data -g www-data \
|
||||||
/var/www/html/storage \
|
/var/www/storage \
|
||||||
/var/www/html/storage/framework \
|
/var/www/storage/framework \
|
||||||
/var/www/html/storage/logs \
|
/var/www/storage/logs \
|
||||||
/var/www/html/storage/framework/sessions \
|
/var/www/storage/framework/sessions \
|
||||||
/var/www/html/storage/framework/views \
|
/var/www/storage/framework/views \
|
||||||
/var/www/html/storage/framework/cache && \
|
/var/www/storage/framework/cache \
|
||||||
composer install --prefer-source --no-interaction
|
&& 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}"
|
ENV PATH="~/.composer/vendor/bin:./vendor/bin:${PATH}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue