forked from x86dev/docker-ttrss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
44 lines (35 loc) · 1.49 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Using https://github.com/gliderlabs/docker-alpine,
# plus https://github.com/just-containers/s6-overlay for a s6 Docker overlay.
FROM gliderlabs/alpine
# Initially was based on work of Christian Lück <[email protected]>.
LABEL description="A complete, self-hosted Tiny Tiny RSS (TTRSS) environment." \
maintainer="Andreas Löffler <[email protected]>"
RUN set -xe && \
apk update && apk upgrade && \
apk add --no-cache --virtual=run-deps \
nginx git ca-certificates curl \
php7 php7-fpm php7-curl php7-dom php7-gd php7-iconv php7-fileinfo php7-json \
php7-mcrypt php7-pgsql php7-pcntl php7-pdo php7-pdo_pgsql \
php7-mysqli php7-pdo_mysql \
php7-mbstring php7-posix php7-session
# 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.
# 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/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/*
ENTRYPOINT ["/init"]