Update Docker config
This commit is contained in:
parent
28804ca541
commit
7d905da02e
@ -1,10 +1,10 @@
|
|||||||
FROM ubuntu:14.04
|
FROM ubuntu:14.04
|
||||||
MAINTAINER Frederic Guillot <fred@miniflux.net>
|
MAINTAINER Frederic Guillot <fred@miniflux.net>
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y apache2 php5 php5-sqlite git curl && apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && apt-get install -y apache2 php5 php5-sqlite git && apt-get clean && rm -rf /var/lib/apt/lists/*
|
||||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||||
RUN cd /var/www && git clone --depth 1 https://github.com/miniflux/miniflux.git
|
RUN cd /var/www && git clone --depth 1 https://github.com/miniflux/miniflux.git
|
||||||
RUN rm -rf /var/www/html && mv /var/www/kanboard /var/www/html
|
RUN rm -rf /var/www/html && mv /var/www/miniflux /var/www/html
|
||||||
RUN chown -R www-data:www-data /var/www/html/data
|
RUN chown -R www-data:www-data /var/www/html/data
|
||||||
|
|
||||||
VOLUME /var/www/html/data
|
VOLUME /var/www/html/data
|
||||||
|
@ -1,6 +1,20 @@
|
|||||||
Run Miniflux with Docker
|
Run Miniflux with Docker
|
||||||
========================
|
========================
|
||||||
|
|
||||||
|
Miniflux can run easily with [Docker](https://www.docker.com).
|
||||||
|
There is a `Dockerfile` in the repository to build your own container.
|
||||||
|
|
||||||
|
Use the automated build
|
||||||
|
-----------------------
|
||||||
|
|
||||||
|
Every new commit on the repository trigger a new build on [Docker Hub](https://registry.hub.docker.com/u/miniflux/miniflux/).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run -d --name miniflux -p 80:80 -t miniflux/miniflux:latest
|
||||||
|
```
|
||||||
|
|
||||||
|
The tag **latest** is the **development version** of Miniflux, use at your own risk.
|
||||||
|
|
||||||
Build your own image
|
Build your own image
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
@ -8,11 +22,8 @@ Build your own image
|
|||||||
docker build -t <yourname/imagename> .
|
docker build -t <yourname/imagename> .
|
||||||
```
|
```
|
||||||
|
|
||||||
Run container from the image
|
Run container from the image:
|
||||||
----------------------------
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -p 80:80 --name miniflux <yourname/imagename>
|
docker run -p 80:80 --name miniflux <yourname/imagename>
|
||||||
```
|
```
|
||||||
|
|
||||||
Enjoy!
|
|
||||||
|
Loading…
Reference in New Issue
Block a user