mirror of
https://github.com/x86dev/docker-ttrss
synced 2025-12-11 08:56:01 +00:00
50 lines
2.0 KiB
Docker
50 lines
2.0 KiB
Docker
# Using https://github.com/gliderlabs/docker-alpine,
|
|
# plus https://github.com/just-containers/s6-overlay for a s6 Docker overlay.
|
|
FROM docker.io/alpine:3 AS builder
|
|
# Initially was based on work of Christian Lück <christian@lueck.tv>.
|
|
LABEL description="A complete, self-hosted Tiny Tiny RSS (TTRSS) environment." \
|
|
maintainer="Andreas Löffler <andy@x86dev.com>"
|
|
|
|
RUN set -xe && \
|
|
apk update && apk upgrade && \
|
|
apk add --no-cache --virtual=run-deps \
|
|
busybox nginx git ca-certificates curl \
|
|
php81 php81-fpm php81-phar \
|
|
php81-pdo php81-gd php81-pgsql php81-pdo_pgsql php81-xmlwriter \
|
|
php81-mbstring php81-intl php81-xml php81-curl php81-simplexml \
|
|
php81-session php81-tokenizer php81-dom php81-fileinfo php81-ctype \
|
|
php81-json php81-iconv php81-pcntl php81-posix php81-zip php81-exif php81-openssl \
|
|
tar xz
|
|
|
|
# Add user www-data for php-fpm.
|
|
# 82 is the standard uid/gid for "www-data" in Alpine.
|
|
RUN adduser -u 82 -D -S -G www-data www-data
|
|
|
|
# Copy root file system.
|
|
COPY root /
|
|
|
|
# Add s6 overlay.
|
|
#ARG S6_OVERLAY_VERSION=3.1.5.0
|
|
#RUN curl -L -s https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-noarch.tar.xz | tar -Jxpf - -C /
|
|
# Note: Tweak this line if you're running anything other than x86 AMD64 (64-bit).
|
|
#RUN curl -L -s https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-x86_64.tar.xz | tar -Jxpf - -C /
|
|
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 /
|
|
|
|
# Add wait-for-it.sh
|
|
ADD https://raw.githubusercontent.com/Eficode/wait-for/master/wait-for /srv
|
|
RUN chmod 755 /srv/wait-for
|
|
|
|
# Expose Nginx ports.
|
|
EXPOSE 8080
|
|
EXPOSE 4443
|
|
|
|
# Expose default database credentials via ENV in order to ease overwriting.
|
|
ENV DB_NAME ttrss
|
|
ENV DB_USER ttrss
|
|
ENV DB_PASS ttrss
|
|
|
|
# Clean up.
|
|
RUN set -xe && apk del --progress --purge && rm -rf /var/cache/apk/* && rm -rf /var/lib/apt/lists/*
|
|
|
|
ENTRYPOINT ["/init"]
|