Skip to content

Commit 1f67606

Browse files
authored
Add docker image
2 parents 71ef4e2 + a168577 commit 1f67606

File tree

6 files changed

+3289
-5
lines changed

6 files changed

+3289
-5
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
./node_modules

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
node_modules/
2-
package-lock.json
32
.env

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM node:22-slim
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN npm install --only=production
8+
9+
COPY . .
10+
11+
CMD ["npm", "run", "start"]

index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,11 @@ export const hubot = new App({
77
token: process.env.BOT_TOKEN,
88
signingSecret: process.env.SLACK_SIGNING_SECRET,
99
appToken: process.env.APP_TOKEN,
10-
logLevel: LogLevel.DEBUG,
1110
socketMode: true,
1211
});
1312

1413
(async () => {
15-
await hubot.start(process.env.PORT || 3000);
14+
await hubot.start();
1615
console.log("⚡️ Bolt app is running!");
1716
})();
1817

0 commit comments

Comments
 (0)