Skip to content

Commit

Permalink
feat(): basic docker runnig
Browse files Browse the repository at this point in the history
  • Loading branch information
jhderojasUVa committed Aug 12, 2022
1 parent 592a36f commit 8e4d5e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Origin
FROM node:lts-alpine3.16

WORKDIR /usr/src/app
COPY . .
RUN npm install

EXPOSE 8080
CMD [ "node", "./src/index.js" ]
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"description": "AnalyTED backend in Node example",
"main": "./src/index.js",
"scripts": {
"docker:build": "docker build -t analyted-backend .",
"docker:run": "docker run -p 8080:8080 --network=host analyted-backend",
"server": "node ./src/index.js",
"prepare": "husky install",
"pre-commit": "lint-staged --relative",
Expand Down

0 comments on commit 8e4d5e4

Please sign in to comment.