Skip to content

Commit

Permalink
fix docker, update for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
citizenrich committed Feb 27, 2020
1 parent eebb96c commit 316db11
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 45 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# modified configs
config_development.json
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,7 @@ config_development.json
.vscode

# ipynb
*.ipynb_checkpoints
*.ipynb_checkpoints

# macos
*.DS_Store
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:dubnium

RUN mkdir -p /var/log
COPY . /src/
WORKDIR /src/server
RUN /bin/bash -c 'cp config/config_development_template.json config_development.json'
RUN npm install

EXPOSE 3000
CMD ["node", "lib/app.js"]
8 changes: 8 additions & 0 deletions dockerhub.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -ex

# automate tagging with the short commit hash
docker build --no-cache -t intrahealth/opencr:$(git rev-parse --short HEAD) .
docker tag intrahealth/opencr:$(git rev-parse --short HEAD) intrahealth/opencr
docker push intrahealth/opencr:$(git rev-parse --short HEAD)
docker push intrahealth/opencr:latest
2 changes: 0 additions & 2 deletions server/.dockerignore

This file was deleted.

12 changes: 0 additions & 12 deletions server/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions server/dockerhub.sh

This file was deleted.

2 changes: 0 additions & 2 deletions ui/.dockerignore

This file was deleted.

12 changes: 0 additions & 12 deletions ui/Dockerfile

This file was deleted.

8 changes: 0 additions & 8 deletions ui/dockerhub.sh

This file was deleted.

0 comments on commit 316db11

Please sign in to comment.