This commit is contained in:
2026-01-10 20:07:35 +01:00
parent a015fd6b2e
commit 43c6e90649
18 changed files with 512 additions and 674 deletions
+2 -1
View File
@@ -1,12 +1,13 @@
FROM golang:alpine as builder
WORKDIR /build
RUN go install github.com/a-h/templ/cmd/templ@latest
COPY . .
RUN templ generate
RUN go build -o iphistory .
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /app/
COPY --from=builder /build/iphistory .
COPY --from=builder /build/web ./web
EXPOSE 8080
CMD ["./iphistory"]