Fix: 'COPY . .' should be changed to 'COPY ./app .' for the yarn install to work with a first sample Dockerfile

This commit is contained in:
saulukas 2020-05-13 16:26:10 +03:00
parent b9fe2cd927
commit 218b917cb6

View File

@ -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"]
```