You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What just happened?
We created two files: our application code (index.js) is a simple bit of javascript code that prints out a message. And the Dockerfile is the instructions for Docker engine to create our custom container. This Dockerfile does the following:
Specifies a base image to pull FROM - the alpine image we used in earlier labs.
Then it RUNs two commands (apk update and apk add) inside that container which installs the Node.js server.
Then we told it to COPY files from our working directory in to the container. The only file we have right now is our index.js.
Next we specify the WORKDIR - the directory the container should use when it starts up
And finally, we gave our container a command (CMD) to run when the container starts.
The third bullet point claims that: "The only file we have right now is our index.js."
However, this is not correct because the Dockerfile also exists in ./ so both files are actually copied into the /app folder.
The text was updated successfully, but these errors were encountered:
In Doing More With Docker Images, it says the following...
What just happened?
We created two files: our application code (index.js) is a simple bit of javascript code that prints out a message. And the Dockerfile is the instructions for Docker engine to create our custom container. This Dockerfile does the following:
The third bullet point claims that: "The only file we have right now is our index.js."
However, this is not correct because the
Dockerfile
also exists in./
so both files are actually copied into the/app
folder.The text was updated successfully, but these errors were encountered: