Skip to content

e21-AS/simple-docker-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Docker Server

A guided hands-on project completed as part of the "Learn Docker" course by Boot.dev. This repository serves as a learning artifact and demonstrates how to containerise a simple HTTP server written in Go.

Purpose

This project was created to practise:

  • building Go binaries
  • writing Dockerfiles
  • running containers with environment variables

Key Features

  • Language: Go (standard library only)
  • Base image: Debian (stable-slim)
  • Configuration: Port configurable via the PORT environment variable

Getting Started

1. Build the binary (WSL2/Linux)

go build -o goserver main.go

2. Build the Docker image

docker build -t goserver .

3. Run the container

docker run -p 8991:8991 -e PORT=8991 goserver

About

Simple Go HTTP server containerised with Docker as part of a hands-on learning project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors