mirror of
https://github.com/docker/docs.git
synced 2026-11-04 18:26:54 +00:00
fix: add layer to Dockerfile to fix issue 15394 (#15395)
This commit is contained in:
1 parent
308d59eb23
commit
f9ea6f2175
1 file changed
+2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user