Skip to content

wllmsash/go-minimal-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-minimal-web-server

Run the web server in development:

go run .

Build and run an ephemeral web server:

docker build \
  --tag go-minimal-web-server:latest \
  .

docker run \
  --rm \
  --publish 8080:8080 \
  --mount type=bind,source=/var/local/www,target=/var/local/www,readonly \
  go-minimal-web-server:latest

Developing in a devcontainer

Build the devcontainer image:

docker build \
  --file ./.devcontainer/Dockerfile \
  --tag go-minimal-web-server-devcontainer:latest \
  --build-arg DEVCONTAINER_UID=$UID \
  .

Run the devcontainer from VSCode, or start one from the terminal:

docker run \
  --rm \
  --tty \
  --interactive \
  --publish 8080:8080 \
  --mount type=bind,source=$PWD,target=/workspace \
  --add-host=host.docker.internal:host-gateway \
  go-minimal-web-server-devcontainer:latest \
  bash

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published