Skip to content

Commit

Permalink
feat: modified json server
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-Granato committed Jan 15, 2024
1 parent 7761d69 commit 6ef7e18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ services:
pagopa-pdv-mock:
container_name: pagopa-pdv-mock
build:
context: .
dockerfile: docker/pagopa-personal-data-vault-tokenizer/Dockerfile.pdv
context: docker/pagopa-personal-data-vault-tokenizer/
dockerfile: Dockerfile.pdv
ports:
- "8092:8080"
networks:
Expand Down
2 changes: 1 addition & 1 deletion docker/pagopa-personal-data-vault-tokenizer/Dockerfile.pdv
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM node:18.13.0-alpine
WORKDIR /usr/src/app

COPY ./* /usr/src/app/
COPY . .
RUN yarn install
CMD ["yarn", "start"]
4 changes: 2 additions & 2 deletions docker/pagopa-personal-data-vault-tokenizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"version": "1.0.0",
"description": "pagopa-pdv mock",
"main": "index.js",
"author": "Marco Greco - marco.grecp@pagopa.it",
"author": "Fernando Granato",
"license": "MIT",
"dependencies": {
"json-server": "^0.17.3"
},
"scripts": {
"start": "json-server --watch src/db.json --routes src/routes.json --middlewares src/middleware.js --port 8080 --host 0.0.0.0"
"start": "json-server --watch ./src/db.json --routes ./src/routes.json --middlewares ./src/middleware.js --port 8080 --host 0.0.0.0"
}
}

0 comments on commit 6ef7e18

Please sign in to comment.