Files
iphistory/Dockerfile
T
2026-01-10 20:07:35 +01:00

14 lines
298 B
Docker

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 .
EXPOSE 8080
CMD ["./iphistory"]