Alan Colon 7 سال پیش
والد
کامیت
75cf3cd6d4
4فایلهای تغییر یافته به همراه26 افزوده شده و 0 حذف شده
  1. 2 0
      .dockerignore
  2. 14 0
      Dockerfile
  3. 3 0
      build.sh
  4. 7 0
      docker-compose.yml

+ 2 - 0
.dockerignore

@@ -0,0 +1,2 @@
+node_modules/
+users/

+ 14 - 0
Dockerfile

@@ -0,0 +1,14 @@
+FROM node
+
+RUN npm install -g yarn
+
+COPY package.json /app/
+
+WORKDIR /app
+
+RUN yarn
+
+COPY . /app/
+
+CMD node bot.js
+

+ 3 - 0
build.sh

@@ -0,0 +1,3 @@
+#!/bin/bash
+docker build --tag adventurebot .
+

+ 7 - 0
docker-compose.yml

@@ -0,0 +1,7 @@
+version: '2'
+services:
+  adventurebot:
+    build: .
+    volumes:
+    - ./users/:/app/users/
+    restart: always