1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-11 05:02:37 +01:00

Compile TS during Docker image build

This commit is contained in:
Paul Munteanu 2021-05-29 21:35:39 +03:00
parent cfe7338dc6
commit 5e7771c4ac
No known key found for this signature in database
GPG Key ID: 4C0797E4861E8917
2 changed files with 3 additions and 2 deletions

View File

@ -1,8 +1,9 @@
FROM node:lts-alpine
WORKDIR /usr/src/fosscord-api
COPY package.json .
COPY package.json .
RUN npm install
RUN npx patch-package
COPY . .
EXPOSE 3001
RUN npm run build
CMD ["npm", "start"]

View File

@ -7,7 +7,7 @@
"scripts": {
"test": "jest",
"test:watch": "jest --watch",
"start": "npm run build && node dist/start",
"start": "node dist/start",
"build": "tsc -b .",
"dev": "tsnd --respawn src/start.ts"
},