浏览代码

fix: Removed duplicate pkg + Dockerfile (alpha)

NGPixel 8 年之前
父节点
当前提交
cd600b0541
共有 4 个文件被更改,包括 24 次插入1 次删除
  1. 8 0
      Dockerfile
  2. 1 0
      README.md
  3. 15 0
      docker-compose.yml
  4. 0 1
      package.json

+ 8 - 0
Dockerfile

@@ -0,0 +1,8 @@
+FROM node:latest
+
+RUN mkdir -p /usr/src/app
+WORKDIR /usr/src/app
+RUN yarn add wiki.js@latest
+
+EXPOSE 3000
+CMD [ "node", "server" ]

+ 1 - 0
README.md

@@ -7,6 +7,7 @@
 [![Chat on Gitter](https://img.shields.io/badge/chat-on_gitter-CC2B5E.svg?style=flat-square&logo=image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAOCAMAAADUg/YpAAAABlBMVEUAAAD///%2Bl2Z/dAAAAAXRSTlMAQObYZgAAABVJREFUeAFjwAUYYTQByAAh0WicAAAFnwAYeB5bLwAAAABJRU5ErkJggg==)](https://gitter.im/Requarks/wiki)
 [![Twitter Follow](https://img.shields.io/badge/follow-%40requarks-blue.svg?style=flat-square)](https://twitter.com/requarks)  
 [![Build Status](https://img.shields.io/travis/Requarks/wiki/master.svg?style=flat-square)](https://travis-ci.org/Requarks/wiki)
+[![Codefresh Build Status]( https://g.codefresh.io/api/badges/build?repoOwner=Requarks&repoName=wiki&branch=master&pipelineName=wiki&accountName=NGPixel&type=cf-1)](https://g.codefresh.io/repositories/Requarks/wiki/builds?filter=trigger:build;branch:master;service:5903d09d270a090001e864b6~wiki)
 [![Codacy Badge](https://img.shields.io/codacy/grade/1d0217a3153c4595bdedb322263e55c8/master.svg?style=flat-square)](https://www.codacy.com/app/Requarks/wiki)
 [![Dependency Status](https://img.shields.io/gemnasium/Requarks/wiki.svg?style=flat-square)](https://gemnasium.com/github.com/Requarks/wiki)
 [![Known Vulnerabilities](https://snyk.io/test/github/requarks/wiki/badge.svg?style=flat-square)](https://snyk.io/test/github/requarks/wiki)

+ 15 - 0
docker-compose.yml

@@ -0,0 +1,15 @@
+version: '3'
+services:
+  wikidb:
+    image: mongo
+    ports:
+      - '27017'
+    command: '--smallfiles --logpath=/dev/null'
+  wikijs:
+    image: 'requarks/wiki:master'
+    links:
+      - wikidb
+    ports:
+      - '3000'
+    environment:
+      - PORT: 3000

+ 0 - 1
package.json

@@ -112,7 +112,6 @@
     "serve-favicon": "^2.4.2",
     "simplemde": "^1.11.2",
     "socket.io": "^1.7.3",
-    "sticky-js": "^1.0.7",
     "stopword": "^0.1.1",
     "stream-to-promise": "^2.2.0",
     "tar": "^2.2.1",