aboutsummaryrefslogtreecommitdiff
path: root/Docker/Dockerfile
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2018-03-04 01:02:02 +0100
committerGravatar GitHub <noreply@github.com> 2018-03-04 01:02:02 +0100
commit71918dbc5a240dfa391491b27cdb482d55b8794a (patch)
tree8ef6f68f35134d93cba6495728983ae37c69e127 /Docker/Dockerfile
parent9dbed072b32f70db98c24e164ca6ee5487ceb97e (diff)
New Docker (#1813)
* Draft of new Docker Based on Alpine Linux. Size ~78MB. https://github.com/FreshRSS/docker-freshrss/issues/4 https://github.com/FreshRSS/FreshRSS/issues/520 https://github.com/FreshRSS/docker-freshrss https://github.com/FreshRSS/docker-freshrss-production * Docker readme * +x execution rights prepare * Docker readme links to hub.docker.com https://hub.docker.com/r/freshrss/freshrss/
Diffstat (limited to 'Docker/Dockerfile')
-rw-r--r--Docker/Dockerfile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Docker/Dockerfile b/Docker/Dockerfile
new file mode 100644
index 000000000..fc753e58d
--- /dev/null
+++ b/Docker/Dockerfile
@@ -0,0 +1,22 @@
+FROM alpine:3.7
+
+RUN apk add --no-cache \
+ apache2 php7-apache2 \
+ php7 php7-curl php7-gmp php7-intl php7-mbstring php7-xml php7-zip \
+ php7-ctype php7-dom php7-fileinfo php7-json php7-session \
+ php7-pdo_sqlite \
+ php7-pdo_mysql \
+ php7-pdo_pgsql
+
+ENV FRESHRSS_ROOT /var/www/FreshRSS
+RUN mkdir -p ${FRESHRSS_ROOT} /run/apache2/
+WORKDIR ${FRESHRSS_ROOT}
+
+COPY . ${FRESHRSS_ROOT}
+COPY ./Docker/*.Apache.conf /etc/apache2/conf.d/
+
+EXPOSE 80
+CMD php -f ./cli/prepare.php > /dev/null && \
+ chown -R :apache ${FRESHRSS_ROOT} && \
+ chmod -R g+r ${FRESHRSS_ROOT} && chmod -R g+w ${FRESHRSS_ROOT}/data/ && \
+ exec httpd -D FOREGROUND