Skip to content

Commit

Permalink
Adjusted Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrot committed Nov 25, 2021
1 parent 64e11af commit 9ab47d1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
node_modules
test
#config/config.yaml
node_modules/
test/
config/config.yaml
*.db
*.log
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ COPY . /bot

RUN apk update
RUN apk add wget python3 build-base
RUN rm -rf node_modules
RUN npm install

CMD ["npm", "run", "prod", "--prefix", "/bot"]
8 changes: 0 additions & 8 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import * as error from './error';
import * as webserver from './addons/web';

import * as signal from './addons/signal';
import { create } from 'domain';

// Create new Telegraf() with token
let defaultBot;
Expand All @@ -44,13 +43,6 @@ function main(bot = defaultBot, logs = true) {
// Init error handling
error.init(bot, logs);

// TODO: Unit testing
const testing = false;
if (testing) {
const {tests} = require('../tests/testing');
tests(bot);
}

// Use session and check for permissions on message
bot.use(permissions.currentSession());
bot.use((ctx, next) => {
Expand Down

0 comments on commit 9ab47d1

Please sign in to comment.