mirror of
https://github.com/skidoodle/iphistory.git
synced 2025-02-15 08:29:16 +01:00
12 lines
258 B
Docker
12 lines
258 B
Docker
FROM golang:alpine as builder
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN go build -o iphistory .
|
|
|
|
FROM alpine:latest
|
|
RUN apk --no-cache add ca-certificates
|
|
WORKDIR /root/
|
|
COPY --from=builder /app/iphistory .
|
|
COPY --from=builder /app/web ./web
|
|
EXPOSE 8080
|
|
CMD ["./iphistory"]
|