Full Build Pipeline
Part of the Introduction to Docker section of Coddy's Terminal journey. Lesson 39 of 40.
Challenge
MediumRun a complete image pipeline from scratch. A file named version.txt is in your directory. Run these steps one after the other:
- Open
Dockerfilefrom the file tree and write:FROM alpine,WORKDIR /app,COPY version.txt /app/version.txt,CMD ["cat", "/app/version.txt"], then save it - Build it tagged
release:final - Run it so the version prints
Try it yourself
Terminal
All lessons in Introduction to Docker
Practice on your own: Terminal playground