Find a better formatted version of this post on Notion ! Share it. Share this too. The more sharing, the better. Packaging the app: ✅ Pushing to DockerHub: ✅ See Error Pushing to Docker Hub below for how I troubleshot the issue! What is my app? A static webpage I had created for fun a few months ago. I knew it would come in handy! What did I do? Used demo static webpage for testing. Created Dockerfile 💡 It should be Dockerfile, no extension. Dockerfile.Dockerfile is incorrect! Used nginx Alpine as server and the following code: FROM scratch as static-site WORKDIR /app COPY . . FROM nginx:1.16.0-alpine as server COPY --from=static-site /app /usr/share/nginx/html EXPOSE 80 CMD [ "nginx", "-g", "daemon off;"] From Mwiza Kumwenda (see resources below). I wondered if I should use "start" in the CMD [ "nginx", "-g", "daemon off;"] list/tuple, but it worked without it. Exposed port 80 Created image;...
I research and implement products + infrastructure for the Cloud, software, and other interesting things. My tailored Cloud Project Portfolio is at runtcpip.com