mirror of https://github.com/docker/docs.git
fix: add layer to Dockerfile to fix issue 15394 (#15395)
This commit is contained in:
parent
308d59eb23
commit
f9ea6f2175
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue