Files
wallabag_docker/Dockerfile

66 lines
1.4 KiB
Docker
Raw Normal View History

FROM alpine:latest
LABEL maintainer "Marvin Steadfast <marvin@xsteadfastx.org>"
2016-04-18 11:00:29 +02:00
2018-12-15 07:18:19 +01:00
ARG WALLABAG_VERSION=2.3.5
2016-04-18 11:00:29 +02:00
2017-02-02 11:42:13 +01:00
RUN set -ex \
&& apk update \
&& apk upgrade --available \
&& apk add \
2016-04-18 11:00:29 +02:00
ansible \
curl \
git \
2017-02-02 11:42:13 +01:00
libwebp \
2016-04-18 11:00:29 +02:00
mariadb-client \
nginx \
pcre \
php7 \
php7-amqp \
php7-bcmath \
2017-02-02 11:42:13 +01:00
php7-ctype \
php7-curl \
php7-dom \
php7-fpm \
php7-gd \
php7-gettext \
php7-iconv \
php7-json \
php7-mbstring \
php7-openssl \
php7-pdo_mysql \
php7-pdo_pgsql \
php7-pdo_sqlite \
php7-phar \
php7-session \
php7-simplexml \
php7-tokenizer \
2017-02-02 11:42:13 +01:00
php7-xml \
php7-zlib \
2018-11-24 22:38:53 +01:00
php7-sockets \
php7-xmlreader \
2018-12-15 16:31:59 +01:00
php7-tidy \
2016-04-18 11:00:29 +02:00
py-mysqldb \
py-psycopg2 \
2016-04-18 11:00:29 +02:00
py-simplejson \
rabbitmq-c \
2016-04-18 11:00:29 +02:00
s6 \
tar \
&& rm -rf /var/cache/apk/* \
2016-04-18 11:00:29 +02:00
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
2017-07-20 21:32:25 +02:00
&& curl -s https://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
2016-04-18 11:00:29 +02:00
COPY root /
2017-02-24 13:45:44 +01:00
RUN set -ex \
&& cd /var/www/wallabag \
&& SYMFONY_ENV=prod composer install --no-dev -o --prefer-dist \
&& chown -R nobody:nobody /var/www/wallabag
2016-04-18 11:00:29 +02:00
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["wallabag"]