Skip to content

Commit

Permalink
build: wrap container
Browse files Browse the repository at this point in the history
  • Loading branch information
thuongtruong109 committed Jul 21, 2024
1 parent e040626 commit bbb249c
Show file tree
Hide file tree
Showing 28 changed files with 432 additions and 828 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.github
.eslintrc.js
.gitignore
.prettierrc
README.md
Dockerfile
docker-compose.yml
node_modules
2 changes: 1 addition & 1 deletion .github/workflows/test.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint
name: CI

on:
push:
Expand Down
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:18-alpine

WORKDIR /app

RUN npm install npm@latest -g
RUN npm install -g typescript

COPY package*.json ./
RUN npm install

COPY . .

COPY tsconfig.json ./

RUN npm run build

RUN ls

EXPOSE 3000

CMD ["npm", "run", "start"]
69 changes: 0 additions & 69 deletions dist/app.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/app.js.map

This file was deleted.

14 changes: 0 additions & 14 deletions dist/routes/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/routes/index.js.map

This file was deleted.

22 changes: 0 additions & 22 deletions dist/routes/room.router.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/routes/room.router.js.map

This file was deleted.

21 changes: 0 additions & 21 deletions dist/utils/cron.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/utils/cron.js.map

This file was deleted.

63 changes: 0 additions & 63 deletions dist/utils/handleWebsocket.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/utils/handleWebsocket.js.map

This file was deleted.

47 changes: 0 additions & 47 deletions dist/utils/room.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/utils/room.js.map

This file was deleted.

39 changes: 0 additions & 39 deletions dist/utils/rooms.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/utils/rooms.js.map

This file was deleted.

Loading

0 comments on commit bbb249c

Please sign in to comment.