yokomotod.io

2017 09 17 Use Multi Stage Docker Build

I had wrote Dockerfile like this, to deploy Node.js application written by TypeScrpt to k8s FROM node:8.5.0 RUN apt-get update \ && apt-get install -y --no-install-recommends \ apt-transport-https \ && rm -rf /var/lib/apt/lists/* RUN apt-get update \ && apt-get install -y --no-install-recommends \ いろいろ && rm -rf /var/lib/apt/lists/* EXPOSE 3000 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app COPY package.json yarn.lock /usr/src/app/ RUN yarn install COPY . /usr/src/app RUN Read more →

tsc –watch –skipLibCheck

tsc --watch --skipLibCheck good speed. normal full compile Files: 464 Lines: 97878 Nodes: 431416 Identifiers: 142914 Symbols: 108604 Types: 37006 Memory used: 230040K I/O read: 0.05s I/O write: 1.35s Parse time: 1.27s Bind time: 0.59s Check time: 4.40s Emit time: 3.50s Total time: 9.77s full compile + skipLibCheck Files: 464 Lines: 97878 Nodes: 431416 Identifiers: 142914 Symbols: 92415 Types: 17081 Memory used: 199322K I/O read: 0.04s I/O write: 0. Read more →