Recap - Package It Up
Part of the Introduction to Docker section of Coddy's Terminal journey — lesson 27 of 40.
Challenge
MediumPackage a file into an image. A file named config.txt is already in your directory. Run these commands one after the other:
- Write a Dockerfile:
FROM alpine, thenCOPY config.txt /etc/config.txt - Build it tagged
packaged - Run it to
cat /etc/config.txt
Try it yourself
Terminal