diff --git a/Dockerfile b/Dockerfile index 0e781e7..23cfb34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM alpine:3.5 -MAINTAINER Marvin Steadfast + +LABEL maintainer "Marvin Steadfast " ARG WALLABAG_VERSION=2.2.2 -ARG POSTGRES_USER=postgres RUN set -ex \ && echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ @@ -41,23 +41,19 @@ RUN set -ex \ py-simplejson \ s6 \ tar \ - && rm -rf /var/cache/apk/* - -RUN ln -s /usr/bin/php7 /usr/bin/php \ + && rm -rf /var/cache/apk/* \ + && ln -s /usr/bin/php7 /usr/bin/php \ && ln -sf /dev/stdout /var/log/nginx/access.log \ - && ln -sf /dev/stderr /var/log/nginx/error.log - -RUN curl -s http://getcomposer.org/installer | php \ - && mv composer.phar /usr/local/bin/composer - -RUN git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag + && ln -sf /dev/stderr /var/log/nginx/error.log \ + && curl -s http://getcomposer.org/installer | php \ + && mv composer.phar /usr/local/bin/composer \ + && git clone --branch $WALLABAG_VERSION --depth 1 https://github.com/wallabag/wallabag.git /var/www/wallabag COPY root / RUN cd /var/www/wallabag \ - && SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist - -RUN chown -R nobody:nobody /var/www/wallabag + && SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist \ + && chown -R nobody:nobody /var/www/wallabag EXPOSE 80 ENTRYPOINT ["/entrypoint.sh"] diff --git a/README.md b/README.md index 09e2abc..368d645 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ $ docker exec -t NAME_OR_ID_OF_YOUR_WALLABAG_CONTAINER /var/www/wallabag/bin/con It's a good way to use [docker-compose](https://docs.docker.com/compose/). Example: ``` -version: '2' +version: '3' services: wallabag: image: wallabag/wallabag diff --git a/root/etc/ansible/entrypoint.yml b/root/etc/ansible/entrypoint.yml index 33096dc..231cf81 100644 --- a/root/etc/ansible/entrypoint.yml +++ b/root/etc/ansible/entrypoint.yml @@ -70,6 +70,7 @@ login_port={{ database_port }} login_user=root login_password="{{ database_root_password_mariadb }}" + encoding="utf8mb4" notify: run install when: (database_driver == 'pdo_mysql') and (populate_database == True)