Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Dockerfile for gh-organization stats #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading