DevOps Articles

Curated articles, resources, tips and trends from the DevOps World.

Developing Go Apps With Docker

2 years ago www.docker.com
Developing Go Apps With Docker

Summary: This is a summary of an article originally published by the source. Read the full original article here →

Go (or Golang) is one of the most loved and wanted programming languages, according to https://survey.stackoverflow.co/2022/#most-loved-dreaded-and-wanted-language-love-dread. Thanks to its smaller binary sizes vs. many other languages, developers often use Go for containerized application development.

We’ll explore using a Go application with an HTTP web server — plus key best practices, optimization tips, and ways to bolster security.

After making those changes, you’ll want to run the same docker build and docker image ls commands.

Enter the following command to start a container from your image: docker run -d -p 8080:8081 --name go-docker-app [YOUR IMAGE NAME]:alpha

Made with pure grit © 2024 Jetpack Labs Inc. All rights reserved. www.jetpacklabs.com