Golang in Docker

added by DotNetKicks
11/16/2021 8:39:20 PM

224 Views

This is a demo of how you can containerize a Golang application. .dockerignore Dockerfile FROM golang:latest RUN mkdir -p /app WORKDIR /app ADD . /app RUN go build ./app.go CMD ["./app"] Dockerizing a GoLang Web API Login to Docker Hub $ docker login Create a GoLang Web API container.


0 comments