Member-only story
CODEX
Learning Go Lang Days 19 to 20 — Creating a docker image of a web application written in Go Lang #100daysofcode

So in my last post I focused on how we can build a caching reverse proxy in Go Lang to allow us to cache the response of a slow server. The idea was that I could use this to speed up a website which rendered quite slowly on its server.
Today we are going to build this as a docker container image so that we can deploy it to a production system with relative ease.
Installing Docker
To follow along with this blog post you will need to have downloaded Docker Desktop.
- Mac: Download and install from https://hub.docker.com/editions/community/docker-ce-desktop-mac/
- Windows: Download and install from https://hub.docker.com/editions/community/docker-ce-desktop-windows/
Further details on installation, in case you get stuck can be found at: https://docs.docker.com/desktop/
Creating the Docker Image
Having got Docker setup on our system, we can now look at building our docker image.
For this article, as a continuation from my previous #100DaysOfCode article, I will be deploying the reverse proxy I wrote in…