Browse Source

first commit

Josh Bicking 7 years ago
commit
652c6a1f7f
4 changed files with 24 additions and 0 deletions
  1. 3 0
      .gitmodules
  2. 10 0
      Dockerfile
  3. 1 0
      sendd
  4. 10 0
      start.sh

+ 3 - 0
.gitmodules

@@ -0,0 +1,3 @@
+[submodule "sendd"]
+	path = sendd
+	url = https://github.com/Josh1147582/sendd

+ 10 - 0
Dockerfile

@@ -0,0 +1,10 @@
+FROM ubuntu:16.04
+
+RUN apt-get update && \
+    apt-get install -y npm nodejs git
+ADD sendd /sendd
+ADD start.sh /start.sh
+CMD chmod +x /start.sh
+EXPOSE 3000 9000
+ENV HOST=localhost
+CMD su -c "$HOST /start.sh"

+ 1 - 0
sendd

@@ -0,0 +1 @@
+Subproject commit 3a91d0fff0ae65a63427246566f59c63b7d30688

+ 10 - 0
start.sh

@@ -0,0 +1,10 @@
+#!/bin/bash
+
+sed 's/localhost/$HOST/' /sendd/public/javascripts/index-localhost.js > /sendd/public/javascripts/index.js
+
+cd /sendd
+
+ln -s /usr/bin/nodejs /usr/bin/node 
+
+npm install
+npm start