FROM node:12
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g ts-node typescript
COPY . .
CMD [ "ts-node", "main.ts" ]
FROM node:12
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g ts-node typescript
COPY . .
CMD [ "ts-node", "main.ts" ]