Skip to content

Commit 790d793

Browse files
committed
Add dockerfile
1 parent 1f260aa commit 790d793

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
FROM docker.io/library/golang:1.18 as builder
2+
3+
COPY / /nosprintfhostport
4+
WORKDIR /nosprintfhostport
5+
RUN CGO_ENABLED=0 make
6+
7+
FROM docker.io/library/golang:1.18
8+
COPY --from=builder /nosprintfhostport/nosprintfhostport /usr/bin/
9+
CMD ["nosprintfhostport"]

0 commit comments

Comments
 (0)