mhalbritter / http-echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP echo

Running

go run ./...

You can use the environment variable HTTP_ECH0_PORT to set the HTTP port, and the environment variable HTTP_ECH0_TLS_PORT to set the HTTPS port.

Building

Docker image

export VERSION=1
docker build -t mhalbritter/http-echo:latest -t mhalbritter/http-echo:"$VERSION" .

Docker image with multi-platform support

Prepare the environment:

docker buildx create --name mybuilder --driver docker-container --bootstrap
docker buildx use mybuilder

Build the image and push it:

export VERSION=1
docker buildx build --platform linux/amd64,linux/arm64 -t mhalbritter/http-echo:latest -t mhalbritter/http-echo:"$VERSION" --push .

About


Languages

Language:Go 60.3%Language:Dockerfile 39.7%