init
This commit is contained in:
17
Dockerfile
Normal file
17
Dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user