Parcourir la source

Create a /tmp directory awkwardly

master
Chris Smith il y a 5 ans
Parent
révision
37b9499f3c
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3
    1
      Dockerfile

+ 3
- 1
Dockerfile Voir le fichier

@@ -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"]

Chargement…
Annuler
Enregistrer