Set default shell, avoid dpkg and other stderr messages

This commit is contained in:
Chuck Lantz
2019-05-22 08:46:31 -07:00
parent 919c3e13e1
commit b36e529034

View File

@@ -5,6 +5,11 @@
FROM golang:1 FROM golang:1
# Configure apt
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get -y install --no-install-recommends apt-utils 2>&1
RUN go get -u -v \ RUN go get -u -v \
github.com/mdempsky/gocode \ github.com/mdempsky/gocode \
github.com/uudashr/gopkgs/cmd/gopkgs \ github.com/uudashr/gopkgs/cmd/gopkgs \
@@ -24,18 +29,21 @@ RUN go get -u -v \
github.com/derekparker/delve/cmd/dlv 2>&1 github.com/derekparker/delve/cmd/dlv 2>&1
# gocode-gomod # gocode-gomod
RUN go get -x -d github.com/stamblerre/gocode \ RUN go get -x -d github.com/stamblerre/gocode 2>&1 \
&& go build -o gocode-gomod github.com/stamblerre/gocode \ && go build -o gocode-gomod github.com/stamblerre/gocode \
&& mv gocode-gomod $GOPATH/bin/ && mv gocode-gomod $GOPATH/bin/
# Copy default endpoint specific user settings overrides into container to specify Go path # Copy default endpoint specific user settings overrides into container to specify Go path
COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json COPY settings.vscode.json /root/.vscode-remote/data/Machine/settings.json
# Verify git, process tools installed # Install git, process tools, lsb-release (common in install instructions for CLIs)
RUN apt-get update && apt-get -y install git procps RUN apt-get -y install git procps lsb-release
# Clean up # Clean up
RUN apt-get autoremove -y \ RUN apt-get autoremove -y \
&& apt-get clean -y \ && apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ENV DEBIAN_FRONTEND=dialog
# Set the default shell to bash rather than sh
ENV SHELL /bin/bash