gitpod: Fix docker stuffs

relevant https://github.com/gitpod-io/gitpod/issues/1171
This commit is contained in:
Kreyren 2020-02-03 04:48:21 +01:00 committed by GitHub
commit a9d0e8888e
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

@ -1,19 +1,14 @@
FROM gitpod/workspace-full-vnc:latest
USER root
ARG DEBIAN_FRONTEND=noninteractive
# Update apt repositories
RUN apt-get update
# Upgrade the image
RUN apt upgrade -y
RUN apt dist-upgrade -y
# Install linting dependencies
RUN apt install -y shellcheck firefox tree xclip
# Install mindmap dependencies
RUN apt install -y umbrello
RUN apt-get update \
&& apt-get upgrade -y \
&& apt dist-upgrade -y \
&& apt-get install -y shellcheck firefox tree xclip umbrello \
&& rm -rf /var/lib/apt/lists/* \
&& apt autoremove -y
# Add custom functions
RUN if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
@ -21,9 +16,3 @@ RUN if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
"ix() { curl -F 'f:1=<-' ix.io 2>/dev/null ;}" \
"xcopy() { xclip -se C ;}" \
>> /etc/bash.bashrc; fi
# Remove apt sources to clean up space
RUN rm -rf /var/lib/apt/lists/*
# Clean-up unneeded packages
RUN apt autoremove -y