We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72c753f commit 3e8a3a4Copy full SHA for 3e8a3a4
.dockerignore
@@ -0,0 +1,4 @@
1
+# Created by .ignore support plugin (hsz.mobi)
2
+.idea/
3
+*.iml
4
+.git/
Dockerfile
@@ -2,8 +2,8 @@
FROM golang:1.13 as builder
# Add the project in the image
5
-ADD . /go/src/github.com/kumina/postfix_exporter
6
-WORKDIR /go/src/github.com/kumina/postfix_exporter
+ADD . /build
+WORKDIR /build
7
8
# Install needed dependencies for the build
9
RUN apt-get update -q && apt-get install -qy \
@@ -21,6 +21,6 @@ EXPOSE 9154
21
WORKDIR /
22
23
# Copy the binary from the build image to the real one
24
-COPY --from=builder /go/src/github.com/kumina/postfix_exporter/postfix_exporter .
+COPY --from=builder /build/postfix_exporter .
25
26
ENTRYPOINT ["/postfix_exporter"]
0 commit comments