DEV Community

Discussion on: July 3rd, 2020: What did you learn this week?

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt

I have learnt this for a while, but just to recap.

Run npm ci or yarn --frozen-lockfile inside Dockerfile, but before that, don't forget to copy lock-file.

COPY package.json yarn.lock ./
RUN yarn --production --frozen-lockfile

And, I also noticed that Yarn is already installed by default in the Docker image, no need to apk add yarn.

Collapse
 
nickytonline profile image
Nick Taylor

Awesome!

Hackerman from Kung Fury putting on a Nintendo Power glove