mirror of https://github.com/docker/docs.git
Update part2.md (#10457)
Updated the dockerfile comments consistent with ending period marks.
This commit is contained in:
parent
2f99b92dcc
commit
d90d0a47c7
|
@ -92,16 +92,16 @@ The `node-bulletin-board` project is a simple bulletin board application, writte
|
||||||
Take a look at the file called `Dockerfile` in the bulletin board application. Dockerfiles describe how to assemble a private filesystem for a container, and can also contain some metadata describing how to run a container based on this image. The bulletin board app Dockerfile looks like this:
|
Take a look at the file called `Dockerfile` in the bulletin board application. Dockerfiles describe how to assemble a private filesystem for a container, and can also contain some metadata describing how to run a container based on this image. The bulletin board app Dockerfile looks like this:
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
# Use the official image as a parent image
|
# Use the official image as a parent image.
|
||||||
FROM node:current-slim
|
FROM node:current-slim
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory.
|
||||||
WORKDIR /usr/src/app
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
# Copy the file from your host to your current location
|
# Copy the file from your host to your current location.
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
|
||||||
# Run the command inside your image filesystem
|
# Run the command inside your image filesystem.
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# Inform Docker that the container is listening on the specified port at runtime.
|
# Inform Docker that the container is listening on the specified port at runtime.
|
||||||
|
|
Loading…
Reference in New Issue