Skip to content

Commit

Permalink
支持Docker方式部署
Browse files Browse the repository at this point in the history
  • Loading branch information
star7th committed Nov 6, 2016
1 parent 681162d commit 2215edd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM php:5.6-apache
COPY ./ /var/www/html/

RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
&& docker-php-ext-install -j$(nproc) gd mcrypt


RUN chmod -R 777 /var/www/html/

CMD ["apache2-foreground"]
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "ShowDoc is a tool greatly applicable for an IT team to share documents online",
"keywords": ["showdoc","documents","Api"],
"homepage": "https://github.com/star7th/showdoc",
"version":"v1.2.0",
"version":"v1.2.1",
"license": "Apache-2.0",
"authors": [
{
Expand Down

0 comments on commit 2215edd

Please sign in to comment.