mirror of
https://github.com/dcarrillo/whatismyip.git
synced 2025-07-01 10:29:27 +00:00
first commit
This commit is contained in:
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -0,0 +1,18 @@
|
||||
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"]
|
Reference in New Issue
Block a user