Skip to content

Commit 03f203a

Browse files
committed
Redirect Dockerfile stderr to stdout
1 parent 4745fe1 commit 03f203a

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

Dockerfile

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ RUN apt-get update \
66
&& apt-get install -y \
77
wget tar libssl1.0-dev libxml2-dev make g++
88
RUN cd /tmp \
9-
&& wget https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz \
10-
&& tar -zxvf xar-1.6.1.tar.gz > /dev/null \
9+
&& wget https://github.com/downloads/mackyle/xar/xar-1.6.1.tar.gz 2>&1 \
10+
&& tar -zxvf xar-1.6.1.tar.gz 2>&1 \
1111
&& mv xar-1.6.1 xar \
1212
&& cd xar \
13-
&& ./configure > /dev/null \
14-
&& make > /dev/null \
15-
&& make install > /dev/null
13+
&& ./configure 2>&1 \
14+
&& make 2>&1 \
15+
&& make install 2>&1
1616

1717
FROM goflutter/golang-cross:latest AS hover
1818

1919
# Add dart apt repository
20-
RUN sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -' \
21-
&& sh -c 'wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
20+
RUN wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - 2>&1 \
21+
&& wget -qO- https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list
2222

2323
# Install dependencies via apt
2424
RUN apt-get update \
@@ -50,10 +50,10 @@ RUN apt-get update \
5050
# Install darwin-pkg dependencies
5151
# TODO, optimization: make bomutils in a separate stage, copy binaries/libs, like xar.
5252
RUN cd /tmp \
53-
&& git clone https://github.com/hogliux/bomutils \
53+
&& git clone https://github.com/hogliux/bomutils 2>&1 \
5454
&& cd bomutils \
55-
&& make > /dev/null \
56-
&& make install > /dev/null
55+
&& make 2>&1 \
56+
&& make install 2>&1
5757
COPY --from=xarbuilder /usr/local/bin/xar /usr/local/bin/xar
5858
COPY --from=xarbuilder /usr/local/lib/libxar.so.1 /usr/local/lib/libxar.so.1
5959
COPY --from=xarbuilder /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0
@@ -85,15 +85,15 @@ ENV SNAP_ARCH="amd64"
8585
# TODO: Add pacman pkg packaging
8686

8787
# Install Flutter from the beta channel
88-
RUN git clone --single-branch --depth=1 --branch beta https://github.com/flutter/flutter /opt/flutter \
88+
RUN git clone --single-branch --depth=1 --branch beta https://github.com/flutter/flutter /opt/flutter 2>&1 \
8989
&& ln -sf /opt/flutter/bin/flutter /usr/bin/flutter \
9090
&& flutter doctor -v
9191

9292
# Build hover
9393
WORKDIR /go/src/app
9494
COPY . .
95-
RUN go get -d -v ./...
96-
RUN go install -v ./...
95+
RUN go get -d -v ./... 2>&1
96+
RUN go install -v ./... 2>&1
9797

9898
COPY docker/hover-safe.sh /usr/local/bin/hover-safe.sh
9999

go.sum

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4k
106106
github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
107107
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
108108
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
109+
github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8=
109110
github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
110111
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
111112
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=

0 commit comments

Comments
 (0)