Skip to content

Commit b9d69b1

Browse files
committed
chore: docker changes
1 parent 9604679 commit b9d69b1

File tree

5 files changed

+19
-1152
lines changed

5 files changed

+19
-1152
lines changed

.github/workflows/docker-image.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,18 @@ jobs:
2424
- name: Check out the repo
2525
uses: actions/checkout@v4.2.2
2626

27+
- name: Set up Node.js
28+
uses: actions/setup-node@v4.4.0
29+
with:
30+
cache: "npm"
31+
node-version: "22"
32+
33+
- name: Install dependencies
34+
run: npm ci
35+
36+
- name: Build project
37+
run: npm run build
38+
2739
- name: Log in to the Container registry
2840
uses: docker/login-action@v3.4.0
2941
with:

deployment/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ FROM node:22-slim
33
WORKDIR /bot
44

55
# Copy project files
6-
COPY package*.json ./
7-
RUN npm install
6+
COPY dist/ .
87

9-
# Copy remaining project files
10-
COPY . .
11-
12-
RUN chmod +x entrypoint.sh
13-
14-
CMD ["/bin/bash", "entrypoint.sh"]
8+
CMD ["node", "index.js"]

deployment/entrypoint.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)