Public Repository

Last pushed: 2 years ago
Short Description
hostname is a web server that announces the hostname of the server it's being served from
Full Description

A single purpose Go web server, serving a user interface that announces the hostname of the server it's being served from.

https://github.com/openwebcraft/gowebsrv

Image built for deployment on Raspberry Pi w/ the following Dockerfile:

# Start from Hypriot crew's Go image
FROM hypriot/rpi-golang

WORKDIR $GOPATH

# Fetch the hostname command inside the container.
RUN go get github.com/openwebcraft/gowebsrv/hostname

# Build the hostname command inside the container.
RUN go install github.com/openwebcraft/gowebsrv/hostname

# Run the hostname command by default when the container starts.
ENTRYPOINT $GOPATH/bin/hostname

# Document that the service listens on port 8080.
EXPOSE 8080
Docker Pull Command
Owner
matthiasg

Comments (0)