mirror of
https://github.com/skidoodle/iphistory.git
synced 2026-04-27 23:37:35 +02:00
14 lines
298 B
Docker
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"]
|