portal

Landing page for your homelab
git clone https://git.woozle.org/neale/portal.git

Neale Pickett  ·  2023-03-11

Dockerfile

 1FROM golang:1-alpine AS build
 2WORKDIR /src
 3COPY go.* ./
 4RUN go mod download -x
 5COPY cmd ./cmd/
 6RUN CGO_ENABLED=0 GOOS=linux go install ./...
 7
 8FROM scratch AS target
 9WORKDIR /target
10COPY web web
11COPY --from=build /go/bin/ .
12
13FROM scratch
14COPY --from=target /target /
15ENTRYPOINT ["/portal"]