Skip to content

Instantly share code, notes, and snippets.

@pirafrank
Created April 4, 2023 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pirafrank/e091f09bcc8cd3a1351a00ceecba6b02 to your computer and use it in GitHub Desktop.
Save pirafrank/e091f09bcc8cd3a1351a00ceecba6b02 to your computer and use it in GitHub Desktop.
vim from jonathonf's PPA in a Docker container
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
# explicitly set lang and workdir
ENV LANG="en_US.UTF-8" LC_ALL="C" LANGUAGE="en_US.UTF-8"
USER root
RUN apt-get remove -y vim-runtime gvim vim-tiny \
vim-common vim-gui-common \
&& apt-get autoremove -y
RUN add-apt-repository --yes ppa:jonathonf/vim \
&& apt-get update \
&& apt-get install -y vim
USER work
WORKDIR /home/work
# set default terminal
ENV TERM=xterm-256color
EXPOSE 2222
CMD ["sh", "-c", "zsh pre_start.zsh ; zsh start.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment