This commit is contained in:
dada513 2022-06-07 12:09:24 +02:00
parent 37adfacb4f
commit de2ff62cd5
No known key found for this signature in database
GPG key ID: 403448C14FA4B33E
3 changed files with 6 additions and 8 deletions

View file

@ -1,7 +1,5 @@
FROM node:17-alpine FROM node:17-alpine
WORKDIR /app WORKDIR /app
COPY package.json yarn.lock .
RUN yarn install --frozen-lockfile
COPY . . COPY . .
RUN yarn build RUN yarn install --frozen-lockfile
CMD [ "node", "dist/index.js" ] CMD [ "yarn", "start" ]

View file

@ -4,7 +4,7 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"dev": "NODE_ENV=development nodemon --ext ts,json --watch src --exec esno src/index.ts", "dev": "NODE_ENV=development nodemon --ext ts,json --watch src --exec esno src/index.ts",
"build": "tsc", "start": "esno src/index.ts",
"lint": "eslint **/*.ts" "lint": "eslint **/*.ts"
}, },
"dependencies": { "dependencies": {

View file

@ -10,10 +10,10 @@ import * as BuildConfig from './constants';
import { filterMessage } from './filters'; import { filterMessage } from './filters';
import { green, bold, blue, underline, yellow } from 'kleur/colors'; import { green, bold, blue, underline, yellow } from 'kleur/colors';
import * as parser from 'discord-command-parser'; import * as parser from 'discord-command-parser';
import fs from 'fs'; import * as fs from 'fs';
import path, { dirname } from 'path'; import * as path from 'path';
import { SuccessfulParsedMessage } from 'discord-command-parser'; import { SuccessfulParsedMessage } from 'discord-command-parser';
import dotenv from 'dotenv'; import * as dotenv from 'dotenv';
import { parseLog } from './mclogs'; import { parseLog } from './mclogs';
dotenv.config(); dotenv.config();