Dockerfile

# syntax=docker/dockerfile:1.4
# portr -- archived 2022-06, see mercemay.top/src/portr/
# This image is no longer published anywhere. Kept here so the project
# still builds if someone checks it out of the archive.

FROM golang:1.19-bullseye

WORKDIR /src
COPY . .

RUN CGO_ENABLED=0 go build \
        -trimpath \
        -ldflags '-s -w' \
        -o /usr/local/bin/portr \
        ./

ENTRYPOINT ["/usr/local/bin/portr"]