Skip to content

Instantly share code, notes, and snippets.

@youpong
Last active November 15, 2022 15:58
Show Gist options
  • Save youpong/367af1c991bb5bd5d922f30d5d9e8085 to your computer and use it in GitHub Desktop.
Save youpong/367af1c991bb5bd5d922f30d5d9e8085 to your computer and use it in GitHub Desktop.
Dockerfile for thefuck
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update
RUN apt-get install -y vim zsh sudo python3-dev python3-pip python3-setuptools
RUN adduser --disabled-password --gecos '' --shell /usr/bin/zsh user
RUN echo 'user ALL=(root) NOPASSWD:ALL' > /etc/sudoers.d/user
RUN echo 'PATH="$HOME/.local/bin:$PATH"' >> /home/user/.zprofile
RUN echo 'eval "$($HOME/.local/bin/thefuck --alias)"' >> /home/user/.zshrc
RUN echo 'eval "$($HOME/.local/bin/thefuck --alias)"' >> /home/user/.bashrc
USER user
WORKDIR /home/user
RUN pip install --upgrade --no-warn-script-location pip
RUN pip install --no-warn-script-location thefuck --user
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment