This commit is contained in:
2024-09-03 16:52:58 +08:00
commit ee34224cb7
7 changed files with 74 additions and 0 deletions

17
Dockerfile Normal file
View File

@@ -0,0 +1,17 @@
FROM docker.io/golang:1.23.0 AS builder
WORKDIR /app
COPY . .
RUN make
FROM alpine:latest
WORKDIR /app
COPY --from=builder /app/ip .
EXPOSE 8080
CMD ["/app/ip"]