mirror of https://github.com/docker/docs.git
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:
parent
c54b66f2a7
commit
c15bac6288
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue