Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Dockerfile Updates (#59)
Browse files Browse the repository at this point in the history
* Thinner Docker Images

* Formatting Fixes
  • Loading branch information
Lallu Anthoor authored and John Kleinschmidt committed Jun 27, 2017
1 parent b4d4153 commit 524eaa8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
5 changes: 4 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
node_modules
npm-debug.log
.idea
.elasticbeanstalk
.elasticbeanstalk
data
logstash
nginx
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM node:boron
FROM node:boron-slim
LABEL maintainer Mofesola Babalola <[email protected]>

#Get required applications
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y curl

#Create App Directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

#Install Dependencies
Expand Down
2 changes: 1 addition & 1 deletion config-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ config.couchAuthDbURL = config.getProtocol(config.couchDbUseSsl) + config.couchC
config.searchURL = 'http:https://elastic:changeme@elasticsearch:9200'; // ELASTIC SEARCH URL
config.webDir = __dirname + '/public';
config.serverInfo = 'Server Information to display to users when viewing about HospitalRun';
module.exports = config;
module.exports = config;
1 change: 0 additions & 1 deletion utils/conflict-res.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,3 @@ function cleanupConflicts(currentDoc, conflicts, callback) {
});
}
}

5 changes: 2 additions & 3 deletions utils/reset-db.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ var config = require('../config.js');
var colors = require('colors/safe');
var nano = require('nano')(config.couchAuthDbURL);
var maindb = nano.use('main');
var prompt = require("prompt");
var prompt = require('prompt');
var recordsToDelete = [];

prompt.start();
prompt.message = colors.red("WARNING!!!!");
prompt.message = colors.red('WARNING!!!!');
prompt.get({
properties: {
confirm: {
Expand Down Expand Up @@ -59,4 +59,3 @@ prompt.get({
process.exit(1);
}
});

0 comments on commit 524eaa8

Please sign in to comment.