Skip to content

Commit

Permalink
converting to npm app
Browse files Browse the repository at this point in the history
  • Loading branch information
LordFarquaadtheCreator committed Nov 19, 2024
1 parent aebc31a commit 8617fee
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
FROM oven/bun:1 AS base
FROM node:18-alpine AS base

WORKDIR /app

COPY package.json ./
COPY package.json package-lock.json ./

RUN bun install
RUN npm install --no-cache

COPY . .

EXPOSE 3000

CMD [ "bun", "run", "server.ts" ]
CMD ["npm", "run", "serve"]
43 changes: 20 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 9 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"scripts": {
"test": "mocha --recursive",
"serve": "bun run --watch server.ts"
"build": "tsc",
"serve": "nodemon --watch server.ts",
"start": "node dist/server.js"
},
"dependencies": {
"@types/chai": "^4.3.16",
Expand All @@ -16,11 +18,14 @@
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.19.2",
"fs": "^0.0.1-security",
"nodemon": "^3.1.1",
"path": "^0.12.7",
"pg": "^8.11.5",
"pg": "^8.13.1",
"ts-node": "^10.9.2",
"typescript": "^5.6.3",
"winston": "^3.13.0"
},
"devDependencies": {
"typescript": "^5.2.2"
}
}
}

0 comments on commit 8617fee

Please sign in to comment.