Simplify compiling and running
This commit is contained in:
parent
1cb6d03765
commit
e54be5da02
|
@ -1,2 +1,3 @@
|
|||
config.json
|
||||
node_modules
|
||||
build
|
|
@ -4,5 +4,6 @@ WORKDIR /server
|
|||
COPY . /server
|
||||
|
||||
RUN npm install
|
||||
RUN mkdir build && npm build
|
||||
|
||||
CMD [ "npm", "start" ]
|
||||
|
|
|
@ -4,7 +4,8 @@
|
|||
"description": "Language bot for matrix",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"start": "nodemon --exitcrash --ignore *.sqlite -x ts-node index.ts"
|
||||
"build": "tsc",
|
||||
"start": "node build/index.js"
|
||||
},
|
||||
"author": "Daniel",
|
||||
"license": "ISC",
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"outDir": "build"
|
||||
},
|
||||
"files": [
|
||||
"index.ts"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue