Compile TS during Docker image build
This commit is contained in:
parent
cfe7338dc6
commit
5e7771c4ac
@ -1,8 +1,9 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
WORKDIR /usr/src/fosscord-api
|
WORKDIR /usr/src/fosscord-api
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npx patch-package
|
RUN npx patch-package
|
||||||
COPY . .
|
COPY . .
|
||||||
EXPOSE 3001
|
EXPOSE 3001
|
||||||
|
RUN npm run build
|
||||||
CMD ["npm", "start"]
|
CMD ["npm", "start"]
|
@ -7,7 +7,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"start": "npm run build && node dist/start",
|
"start": "node dist/start",
|
||||||
"build": "tsc -b .",
|
"build": "tsc -b .",
|
||||||
"dev": "tsnd --respawn src/start.ts"
|
"dev": "tsnd --respawn src/start.ts"
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user