Skip to content

Commit

Permalink
fix: Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhendumadhukar committed Aug 16, 2023
1 parent a4e5f24 commit c63c176
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
16 changes: 16 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
docs
site
bug_report.md
feature_request.md
src
tests
.github
.git*
CODE_OF_CONDUCT.md
CONTRIBUTING.md
mkdocs.yml
pull_request_template.md
tsconfig.json
Dockerfile
docker-compose.yml
prometheus.yml
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM node:alpine
WORKDIR /app
RUN npm install -g camouflage-server
RUN camouflage init
CMD ["camouflage", "--config", "config.yml"]
COPY . .
CMD ["npm", "run", "prod"]
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"pretest:mock": "npm run build; ts-node --project ./tests/tsconfig.json ./tests/prepare.ts",
"test:mock": "node bin/camouflage.js --config ./tests/config.yml",
"test:features": "TS_NODE_PROJECT=tests/tsconfig.json cucumber-js --require-module ts-node/register --require 'tests/features/**/*.ts' tests/features/",
"dev": "nodemon -e ts --exec \"npm run start\""
"dev": "nodemon -e ts --exec \"npm run start\"",
"prod": "node bin/camouflage.js --config ./config.yml"
},
"bin": {
"camouflage": "bin/camouflage.js"
Expand Down

0 comments on commit c63c176

Please sign in to comment.