Improve Dockerfile
This commit is contained in:
parent
1dce89b4f8
commit
54190c52e8
15
Dockerfile
15
Dockerfile
@ -1,11 +1,16 @@
|
|||||||
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 && apt-get clean && rm -rf /var/lib/apt/lists/*
|
RUN apt-get update && \
|
||||||
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
apt-get install -y apache2 php5 php5-sqlite php5-curl && \
|
||||||
COPY . /var/www/miniflux
|
apt-get clean && rm -rf /var/lib/apt/lists/* && \
|
||||||
RUN rm -rf /var/www/html && mv /var/www/miniflux /var/www/html
|
echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||||
RUN chown -R www-data:www-data /var/www/html/data
|
|
||||||
|
COPY . /var/www/html
|
||||||
|
|
||||||
|
RUN rm -rf /var/www/html/index.html /var/www/html/data/* && \
|
||||||
|
mkdir /var/www/html/data/favicons && \
|
||||||
|
chown -R www-data:www-data /var/www/html/data
|
||||||
|
|
||||||
VOLUME /var/www/html/data
|
VOLUME /var/www/html/data
|
||||||
|
|
||||||
|
@ -27,3 +27,5 @@ 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>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also mount the volume `/var/www/html/data` to save the data on the host machine.
|
||||||
|
Loading…
Reference in New Issue
Block a user