Simplified Dockerfile

This commit is contained in:
Moritz Heiber 2018-05-29 09:20:17 +02:00
parent 609ca40e69
commit 9baa229a12

View file

@ -13,12 +13,12 @@ RUN apk add --no-cache --virtual .build build-base autoconf imagemagick-dev libt
install -m0755 -o root -g root /tmp/composer.phar /usr/bin/composer.phar && \ install -m0755 -o root -g root /tmp/composer.phar /usr/bin/composer.phar && \
ln -sf /usr/bin/composer.phar /usr/bin/composer && \ ln -sf /usr/bin/composer.phar /usr/bin/composer && \
mkdir -p /var/www && \ mkdir -p /var/www && \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed && \ install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed/storage && \ /var/www/html/pixelfed/storage \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed/storage/framework && \ /var/www/html/pixelfed/storage/framework \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed/storage/framework/sessions && \ /var/www/html/pixelfed/storage/framework/sessions \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed/storage/framework/views && \ /var/www/html/pixelfed/storage/framework/views \
install -d -m0755 -o www-data -g www-data /var/www/html/pixelfed/storage/framework/cache && \ /var/www/html/pixelfed/storage/framework/cache && \
rm /tmp/composer.phar && \ rm /tmp/composer.phar && \
apk del --purge .build apk del --purge .build