Browse Source

Create a /tmp directory awkwardly

master
Chris Smith 5 years ago
parent
commit
37b9499f3c
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      Dockerfile

+ 3
- 1
Dockerfile View File

@@ -5,11 +5,13 @@ WORKDIR /usr/local/go/src/github.com/google/mtail
5 5
 RUN apk add build-base git \
6 6
     && git clone https://github.com/google/mtail . \
7 7
     && make install_deps \
8
-    && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/mtail -a -ldflags '-extldflags "-static"' ./cmd/mtail
8
+    && CGO_ENABLED=0 GOOS=linux go build -o /usr/bin/mtail -a -ldflags '-extldflags "-static"' ./cmd/mtail \
9
+    && mkdir /tmp/empty
9 10
 
10 11
 FROM scratch
11 12
 
12 13
 COPY --from=build /usr/bin/mtail /mtail
14
+COPY --from=build /tmp/empty /tmp
13 15
 
14 16
 EXPOSE 3903
15 17
 ENTRYPOINT ["/mtail", "-logtostderr"]

Loading…
Cancel
Save