mirror of
https://github.com/spacebarchat/server.git
synced 2026-04-01 04:55:42 +00:00
Compile TS during Docker image build
This commit is contained in:
@@ -8,5 +8,6 @@ RUN apk --no-cache --virtual build-dependencies add \
|
||||
RUN npm install
|
||||
RUN apk del build-dependencies
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
EXPOSE 3002
|
||||
CMD ["npm", "start"]
|
||||
@@ -5,7 +5,7 @@
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "npm run build && node dist/",
|
||||
"start": "node dist/",
|
||||
"build": "npx tsc -b .",
|
||||
"dev": "tsnd --respawn src/index.ts"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user