2020-01-25 16:45:04 +01:00
|
|
|
FROM gitpod/workspace-full-vnc:latest
|
2020-01-12 01:57:48 +01:00
|
|
|
|
2020-01-14 09:17:11 +01:00
|
|
|
USER root
|
2020-01-12 01:57:48 +01:00
|
|
|
|
2020-01-14 09:16:11 +01:00
|
|
|
# Update apt repositories
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
# Upgrade the image
|
|
|
|
RUN apt upgrade -y
|
|
|
|
RUN apt dist-upgrade -y
|
|
|
|
|
|
|
|
# Install linting dependencies
|
2020-01-25 17:02:29 +01:00
|
|
|
RUN apt install -y shellcheck firefox tree
|
2020-01-14 09:16:11 +01:00
|
|
|
|
2020-01-25 17:30:26 +01:00
|
|
|
# Add custom functions
|
|
|
|
RUN if ! grep -qF 'ix()' /etc/bash.bashrc; then printf '%s\n' \
|
|
|
|
'# Custom' \
|
|
|
|
"ix() { curl -F 'f:1=<-' ix.io ;}" \
|
|
|
|
"xcopy() { xcopy="xclip -se C" ;}" \
|
|
|
|
>> /etc/bash.bashrc; fi
|
|
|
|
|
2020-01-14 09:16:11 +01:00
|
|
|
# Remove apt sources to clean up space
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# Clean-up unneeded packages
|
2020-01-14 09:17:11 +01:00
|
|
|
RUN apt autoremove -y
|