mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2024-12-22 06:18:01 +00:00
19 lines
226 B
Docker
19 lines
226 B
Docker
FROM golang:1.17-alpine as builder
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN apk add make && make build
|
|
|
|
# Build final image
|
|
FROM scratch
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /app/whatismyip /usr/bin/
|
|
|
|
EXPOSE 8080
|
|
|
|
ENTRYPOINT ["whatismyip"]
|