Skip to content

Commit c63c176

Browse files
fix: Update Dockerfile
1 parent a4e5f24 commit c63c176

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

.dockerignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
docs
2+
site
3+
bug_report.md
4+
feature_request.md
5+
src
6+
tests
7+
.github
8+
.git*
9+
CODE_OF_CONDUCT.md
10+
CONTRIBUTING.md
11+
mkdocs.yml
12+
pull_request_template.md
13+
tsconfig.json
14+
Dockerfile
15+
docker-compose.yml
16+
prometheus.yml

Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
FROM node:alpine
22
WORKDIR /app
3-
RUN npm install -g camouflage-server
4-
RUN camouflage init
5-
CMD ["camouflage", "--config", "config.yml"]
3+
COPY . .
4+
CMD ["npm", "run", "prod"]

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"pretest:mock": "npm run build; ts-node --project ./tests/tsconfig.json ./tests/prepare.ts",
2727
"test:mock": "node bin/camouflage.js --config ./tests/config.yml",
2828
"test:features": "TS_NODE_PROJECT=tests/tsconfig.json cucumber-js --require-module ts-node/register --require 'tests/features/**/*.ts' tests/features/",
29-
"dev": "nodemon -e ts --exec \"npm run start\""
29+
"dev": "nodemon -e ts --exec \"npm run start\"",
30+
"prod": "node bin/camouflage.js --config ./config.yml"
3031
},
3132
"bin": {
3233
"camouflage": "bin/camouflage.js"

0 commit comments

Comments
 (0)