Skip to content

Commit

Permalink
Merge pull request #20 from seniocaires/master
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
dugwood committed Dec 14, 2017
2 parents 510b2b1 + e73a5a2 commit 68d1b19
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM php:7-apache

LABEL maintainer="Senio Caires <seniocaires@gmail.com>"

ARG CONTEXT_PATH

COPY . "/var/www/html/$CONTEXT_PATH"

RUN apt-get update \
&& apt-get install -y libpng-dev \
&& docker-php-ext-install gd \
&& mkdir -p "/var/www/html/$CONTEXT_PATH/logs/" \
&& chown -R 33:33 /var/www/html
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ Please read instructions at https://www.dugwood.com/clickheat/index.html ([Versi

This software is GPL Open Source. More info on rights linked to this software in the [LICENSE file](LICENSE) or at http://www.opensource.org/licenses/gpl-license.php

Docker
======

```
docker build -t dugwood/clickheat .
docker run -it -p 80:80 dugwood/clickheat
curl http://localhost
```

Or build and run with a context path

```
docker build --build-arg CONTEXT_PATH=clickheat -t dugwood/clickheat .
docker run -it -p 80:80 dugwood/clickheat
curl http://localhost/clickheat
```

Special thanks
==============
Expand Down

0 comments on commit 68d1b19

Please sign in to comment.