gromer
git clone https://git.pyrossh.dev/gromer
gromer is a framework and cli to build multipage web apps in golang using htmx and alpinejs.
_example/Containerfile
| 11d9cf7 | 1 | FROM golang:1.18-buster AS build |
| 11d9cf7 | 2 | |
| 11d9cf7 | 3 | WORKDIR /app |
| 11d9cf7 | 4 | COPY go.mod ./ |
| 11d9cf7 | 5 | COPY go.sum ./ |
| 11d9cf7 | 6 | RUN go mod download |
| 11d9cf7 | 7 | COPY ./ ./ |
| 11d9cf7 | 8 | RUN cd _example && go build -o /out |
| 11d9cf7 | 9 | |
| 11d9cf7 | 10 | FROM gcr.io/distroless/base:latest |
| 11d9cf7 | 11 | |
| 11d9cf7 | 12 | WORKDIR / |
| 11d9cf7 | 13 | COPY --from=build /out /out |
| 11d9cf7 | 14 | ENTRYPOINT ["/out"] |