Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM node:8.4

ENV HOME=/home/app
WORKDIR $HOME

COPY package.json package.json
COPY package-lock.json package-lock.json

RUN npm install

COPY tsconfig.json tsconfig.json
COPY tslint.json tslint.json
COPY protractor.conf.js protractor.conf.js
COPY karma.conf.js karma.conf.js
COPY .angular-cli.json .angular-cli.json

COPY e2e e2e
COPY src src

EXPOSE 4200:4200

ENTRYPOINT ["npm", "start", "--"]
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: "3.3"
services:
angular-frontend:
build: .
container_name: angular-frontend
ports:
- "4200:4200"
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = function (config) {
angularCli: {
environment: 'dev'
},
exclude: ['docker-compose.yml', 'Dockerfile'],
reporters: ['progress', 'kjhtml'],
port: 9876,
colors: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve --host=0.0.0.0 --port=4200",
"build": "ng build",
"test": "ng test --code-cover",
"lint": "ng lint",
Expand Down