Update documentation (#12362)

* Update documentation

Update documentation due to changes in https://github.com/docker/getting-started/pull/104

* fix(dockerfile): made one file content
This commit is contained in:
Bunyamin Shabanov 2021-03-18 18:37:39 +02:00 committed by GitHub
parent c54b66f2a7
commit c15bac6288
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -44,12 +44,13 @@ see a few flaws in the Dockerfile below. But, don't worry! We'll go over them.
```dockerfile
FROM node:12-alpine
RUN apk add --no-cache python g++ make
WORKDIR /app
COPY . .
RUN yarn install --production
CMD ["node", "src/index.js"]
```
Please check that the file `Dockerfile` has no file extension like `.txt`. Some editors may append this file extension automatically and this would result in an error in the next step.
2. If you haven't already done so, open a terminal and go to the `app` directory with the `Dockerfile`. Now build the container image using the `docker build` command.