Fix: 'COPY . .' should be changed to 'COPY ./app .' for the yarn install to work with a first sample Dockerfile
This commit is contained in:
parent
b9fe2cd927
commit
218b917cb6
@ -40,7 +40,7 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
|
||||
```dockerfile
|
||||
FROM node:12-alpine
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
COPY ./app .
|
||||
RUN yarn install --production
|
||||
CMD ["node", "/app/src/index.js"]
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user