Skip to content

Commit

Permalink
feat: Dockerfile for gh-organization stats
Browse files Browse the repository at this point in the history
  • Loading branch information
danielwildsmith committed Oct 9, 2024
1 parent cf5d97a commit 6280c02
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 6 deletions.
15 changes: 15 additions & 0 deletions gh-organization-stats/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM node:18-alpine

WORKDIR /app

COPY package*.json ./

RUN npm install

COPY . .

RUN npm run build

EXPOSE 8000

CMD ["npm", "start"]
2 changes: 1 addition & 1 deletion gh-organization-stats/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ npm install
## Usage
<b>Starting the development server:</b>
```
npm run develop
npm run dev
```
You may access the server at http://localhost:8000

Expand Down
9 changes: 4 additions & 5 deletions gh-organization-stats/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"name": "semester-stats",
"version": "1.0.0",
"description": "Developed for a statistics page on the club website",
"main": "index.js",
"description": "A simple API to get the stats for all the repositories in an organization in a single request, caching the data in a MongoDB database",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "npx ts-node-dev src/index.ts",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"@types/express": "^4.17.21",
"@types/node": "^22.5.5",
Expand Down

0 comments on commit 6280c02

Please sign in to comment.