Skip to content

Commit

Permalink
add dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
kwiatekus committed Jan 20, 2025
1 parent 7811a63 commit bfc50a6
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,5 @@ dist/
tests/btp/sm.env
tests/btp/hana-admin-api-binding.json
tests/btp/config.json
tests/**/node_modules/
tests/btp/sample-http-db-nodejs/bookstore/package-lock.json
13 changes: 13 additions & 0 deletions tests/btp/sample-http-db-nodejs/bookstore/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM node:22.10.0

WORKDIR /usr/src/app

COPY package.json .

RUN npm install

COPY src/ ./src

EXPOSE 3000

CMD [ "npm", "start" ]
26 changes: 13 additions & 13 deletions tests/btp/sample-http-db-nodejs/bookstore/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "bookstore-service",
"version": "0.0.1",
"main": "src/app.js",
"scripts": {
"start": "node src/app.js"
},
"dependencies": {
"express": "^4.18.3",
"@sap/hana-client": "^2.19.21",
"@sap/xsenv": "^4.2.0",
"uuid": "^9.0.1"
}
}
"name": "bookstore-service",
"version": "0.0.1",
"main": "src/app.js",
"scripts": {
"start": "node src/app.js"
},
"dependencies": {
"express": "^4.18.3",
"@sap/hana-client": "^2.19.21",
"@sap/xsenv": "^4.2.0",
"uuid": "^9.0.1"
}
}

0 comments on commit bfc50a6

Please sign in to comment.