Skip to content

Commit

Permalink
change dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Rost-is-love committed May 9, 2024
1 parent 091782f commit d0b7eae
Show file tree
Hide file tree
Showing 6 changed files with 959 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ zen-packages
some.json
narrative.html
.tool-versions
pnpm-lock.yaml
createdata.js
deploy.yaml
helm-db.yaml
2 changes: 2 additions & 0 deletions ips_ig/.dockerfileignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
10 changes: 5 additions & 5 deletions ips_ig/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM node:20

WORKDIR /app

RUN corepack enable
COPY package*.json ./

RUN npm install
# RUN npm ci --only=production
COPY . .
RUN pnpm install --frozen-lockfile
RUN pnpm run build

EXPOSE 4000
CMD [ "node", "--loader", "ts-node/esm", "./src/index.ts" ]

CMD [ "node", "build/index.js" ]
13 changes: 2 additions & 11 deletions ips_ig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"scripts": {
"dev": "NODE_ENV=development nodemon",
"start": "nodemon",
"ci:test": "echo \"Error: no test specified\" "
"ci:test": "echo \"Error: no test specified\" ",
"build": "tsc -b"
},
"author": "",
"license": "ISC",
Expand All @@ -29,15 +30,5 @@
"ts-node": "^10.9.1",
"typescript": "^5.1.6"
},
"pnpm": {
"overrides": {
"jsonwebtoken@<=8.5.1": ">=9.0.0",
"axios@<0.21.1": ">=0.21.1",
"follow-redirects@<1.14.7": ">=1.14.7",
"axios@<0.21.2": ">=0.21.2",
"jsonwebtoken@<9.0.0": ">=9.0.0",
"follow-redirects@<1.14.8": ">=1.14.8"
}
},
"packageManager": "[email protected]+sha512.67f5879916a9293e5cf059c23853d571beaf4f753c707f40cb22bed5fb1578c6aad3b6c4107ccb3ba0b35be003eb621a16471ac836c87beb53f9d54bb4612724"
}
Loading

0 comments on commit d0b7eae

Please sign in to comment.