iphistory/Dockerfile
2024-05-31 13:04:51 +02:00

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