Browse Source

支持Docker方式部署

star7th 8 years ago
parent
commit
2215edd81b
2 changed files with 15 additions and 1 deletions
  1. 14 0
      Dockerfile
  2. 1 1
      composer.json

+ 14 - 0
Dockerfile

@@ -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"]

+ 1 - 1
composer.json

@@ -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": [
         {