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
 RUN apk add build-base git \
5
 RUN apk add build-base git \
6
     && git clone https://github.com/google/mtail . \
6
     && git clone https://github.com/google/mtail . \
7
     && make install_deps \
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
 FROM scratch
11
 FROM scratch
11
 
12
 
12
 COPY --from=build /usr/bin/mtail /mtail
13
 COPY --from=build /usr/bin/mtail /mtail
14
+COPY --from=build /tmp/empty /tmp
13
 
15
 
14
 EXPOSE 3903
16
 EXPOSE 3903
15
 ENTRYPOINT ["/mtail", "-logtostderr"]
17
 ENTRYPOINT ["/mtail", "-logtostderr"]

Loading…
Cancel
Save