Last active
November 15, 2022 15:58
-
-
Save youpong/367af1c991bb5bd5d922f30d5d9e8085 to your computer and use it in GitHub Desktop.
Dockerfile for thefuck
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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