This repository has been archived by the owner on Jan 9, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added readme instructions and added dockerfile and modified server sc…
…ript
- Loading branch information
Showing
3 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM ubuntu:14.04 | ||
|
||
# install couchdb | ||
RUN apt-get update && apt-get install curl sudo git wget -y | ||
|
||
# install hospital run | ||
RUN curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash - | ||
RUN apt-get update && apt-get install nodejs -y | ||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
COPY . /usr/src/app | ||
RUN npm install -g npm && npm install -g ember-cli@latest && npm install -g bower | ||
RUN npm install | ||
RUN bower install --allow-root | ||
COPY ./server/config-example.js ./server/config.js | ||
|
||
RUN sed -i -e 's/URL="localhost"/URL="couchdb"/g' ./script/initcouch.sh | ||
RUN sed -i -e "s/couchDbServer: 'localhost'/couchDbServer: 'couchdb'/g" ./server/config.js | ||
RUN sed -i -e "s/localhost:5984/couchdb:5984/g" ./script/server | ||
|
||
EXPOSE 4200 | ||
|
||
ENTRYPOINT ./script/initcouch.sh && npm start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters