2017-07-07 13:15:30 +02:00
|
|
|
# Using https://github.com/gliderlabs/docker-alpine,
|
|
|
|
|
# plus https://github.com/just-containers/s6-overlay for a s6 Docker overlay.
|
2019-07-26 23:30:06 +02:00
|
|
|
FROM alpine:3.10.1
|
2017-07-07 13:15:30 +02:00
|
|
|
# Initially was based on work of Christian Lück <christian@lueck.tv>.
|
2017-02-21 23:50:08 +01:00
|
|
|
LABEL description="A complete, self-hosted Tiny Tiny RSS (TTRSS) environment." \
|
|
|
|
|
maintainer="Andreas Löffler <andy@x86dev.com>"
|
2014-04-26 17:24:57 +02:00
|
|
|
|
2017-02-21 23:50:08 +01:00
|
|
|
RUN set -xe && \
|
|
|
|
|
apk update && apk upgrade && \
|
|
|
|
|
apk add --no-cache --virtual=run-deps \
|
2018-12-16 14:18:23 +01:00
|
|
|
busybox nginx git ca-certificates curl \
|
2019-05-11 19:29:28 +02:00
|
|
|
php7 php7-fpm php7-curl php7-dom php7-gd php7-iconv php7-fileinfo php7-json \
|
2017-11-08 22:02:05 +01:00
|
|
|
php7-mcrypt php7-pgsql php7-pcntl php7-pdo php7-pdo_pgsql \
|
2017-10-05 12:27:55 +02:00
|
|
|
php7-mysqli php7-pdo_mysql \
|
2019-05-01 11:39:50 +02:00
|
|
|
php7-mbstring php7-posix php7-session php7-intl
|
2014-04-26 17:24:57 +02:00
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Add user www-data for php-fpm.
|
|
|
|
|
# 82 is the standard uid/gid for "www-data" in Alpine.
|
2017-02-21 23:50:08 +01:00
|
|
|
RUN adduser -u 82 -D -S -G www-data www-data
|
2014-04-26 17:24:57 +02:00
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Copy root file system.
|
2017-02-21 23:50:08 +01:00
|
|
|
COPY root /
|
2015-12-07 22:23:09 +01:00
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Add s6 overlay.
|
|
|
|
|
# Note: Tweak this line if you're running anything other than x86 AMD64 (64-bit).
|
2017-03-26 21:43:41 +02:00
|
|
|
RUN curl -L -s https://github.com/just-containers/s6-overlay/releases/download/v1.19.1.1/s6-overlay-amd64.tar.gz | tar xvzf - -C /
|
|
|
|
|
|
2017-07-21 22:22:01 +12:00
|
|
|
# Add wait-for-it.sh
|
2017-07-21 22:41:52 +12:00
|
|
|
ADD https://raw.githubusercontent.com/Eficode/wait-for/master/wait-for /srv
|
|
|
|
|
RUN chmod 755 /srv/wait-for
|
2017-07-21 22:22:01 +12:00
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Expose Nginx ports.
|
2017-02-21 23:50:08 +01:00
|
|
|
EXPOSE 8080
|
|
|
|
|
EXPOSE 4443
|
2014-04-26 17:24:57 +02:00
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Expose default database credentials via ENV in order to ease overwriting.
|
2014-04-26 17:24:57 +02:00
|
|
|
ENV DB_NAME ttrss
|
|
|
|
|
ENV DB_USER ttrss
|
|
|
|
|
ENV DB_PASS ttrss
|
|
|
|
|
|
2017-07-07 13:15:30 +02:00
|
|
|
# Clean up.
|
2019-07-25 23:34:30 +02:00
|
|
|
RUN set -xe && apk del --progress --purge && rm -rf /var/cache/apk/* && rm -rf /var/lib/apt/lists/*
|
2017-03-26 21:53:03 +02:00
|
|
|
|
|
|
|
|
ENTRYPOINT ["/init"]
|