fix: add layer to Dockerfile to fix issue 15394 (#15395)

This commit is contained in:
Janik Dotzel 2022-08-16 23:02:49 +02:00 committed by GitHub
parent 308d59eb23
commit f9ea6f2175
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -107,6 +107,7 @@ Let's look at the Dockerfile we were using one more time...
```dockerfile
# syntax=docker/dockerfile:1
FROM node:12-alpine
RUN apk add --no-cache python2 g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
@ -127,6 +128,7 @@ a change to the `package.json`. Make sense?
```dockerfile
# syntax=docker/dockerfile:1
FROM node:12-alpine
RUN apk add --no-cache python2 g++ make
WORKDIR /app
COPY package.json yarn.lock ./
RUN yarn install --production