Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

Commit

Permalink
Adding docker-compose configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mtlynch committed Dec 2, 2019
1 parent 3c17e0e commit a59744a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions docker-compose.yml
@@ -0,0 +1,12 @@
version: "3.2"
services:
zestful:
image: "node:10.17.0"
ports:
- 4300:4300
volumes:
- /app/node_modules
- ./:/app
- ./docker-entrypoint.sh:/app/docker-entrypoint.sh
working_dir: /app
entrypoint: ./docker-entrypoint.sh
8 changes: 8 additions & 0 deletions docker-entrypoint.sh
@@ -0,0 +1,8 @@
#!/bin/bash

set -x

set -e

npm install
npm run start
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "ng serve",
"start": "ng serve --host=0.0.0.0 --port 4300",
"build": "ng build zestful-frontend --configuration=production",
"coverage": "ng test --no-watch --code-coverage",
"lint": "ng lint && scssfmt --recursive './src/**/**/*.scss' --diff",
Expand Down

0 comments on commit a59744a

Please sign in to comment.