I am trying to build a typescript project using docker, but there's an error with tsc. This is my dockerfile
FROM node:alpine AS build
# Create app directory
RUN mkdir -p /app
WORKDIR /app
COPY package.json .
RUN npm install
COPY . .
RUN npm run build:tsc
# RUN npx tsc -p ./tsconfig.json
# Second stage: run things.
FROM node:12
WORKDIR /app
# Install the Javascript dependencies, only runtime libraries.
COPY package.json .
COPY --from=build /app/dist dist
CMD ["npm","run", "start:dev"]
package.json
"start": "node ./dist/server",
"start:dev": "nodemon ./dist/server | bunyan",
"watch:tsc": "tsc --watch -p ./tsconfig.json",
"build:tsc": "tsc -p ./tsconfig.json",
"heroku-postbuild": "npm run build:tsc",