Files
docker/Dockerfile

63 lines
1.5 KiB
Docker
Raw Normal View History

2016-04-18 11:00:29 +02:00
FROM alpine:edge
MAINTAINER Marvin Steadfast <marvin@xsteadfastx.org>
2017-01-18 10:44:17 +01:00
ENV WALLABAG_VERSION=2.1.6 \
2016-10-19 10:44:42 +02:00
POSTGRES_USER=postgres
2016-04-18 11:00:29 +02:00
RUN echo "@testing http://dl-4.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \
&& apk add --update \
ansible \
curl \
git \
libwebp@testing \
mariadb-client \
nginx \
pcre \
php7 \
php7-amqp@testing \
php7-bcmath \
2016-04-18 11:00:29 +02:00
php7-ctype@testing \
php7-curl@testing \
php7-dom@testing \
php7-fpm@testing \
php7-gd@testing \
php7-gettext@testing \
php7-iconv@testing \
php7-json@testing \
php7-mbstring@testing \
php7-openssl@testing \
php7-pdo_mysql@testing \
php7-pdo_pgsql@testing \
2016-04-18 11:00:29 +02:00
php7-pdo_sqlite@testing \
php7-phar@testing \
php7-session@testing \
php7-xml@testing \
php7-zlib@testing \
2016-04-18 11:00:29 +02:00
php7@testing\
py-mysqldb \
py-psycopg2 \
2016-04-18 11:00:29 +02:00
py-simplejson \
s6 \
tar \
2016-04-18 11:00:29 +02:00
&& rm -rf /var/cache/apk/*
RUN 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
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
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]
CMD ["wallabag"]