62 lines
1.6 KiB
Text
62 lines
1.6 KiB
Text
FROM python:3.10
|
|
|
|
ENV DEBIAIN_FRONTEND=noninteractive
|
|
ENV PATH="$PATH:/root/.local/bin:/root/.cargo/bin"
|
|
ENV SHELL=zsh
|
|
ENV USER=root
|
|
|
|
|
|
RUN apt update && \
|
|
apt upgrade -y && \
|
|
apt install -y \
|
|
bat \
|
|
ripgrep \
|
|
cmake \
|
|
htop \
|
|
stow \
|
|
zsh
|
|
|
|
|
|
WORKDIR /root/downloads
|
|
|
|
RUN wget https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage && \
|
|
mkdir -p /root/.local/bin && \
|
|
chmod u+x /root/downloads/nvim.appimage && \
|
|
/root/downloads/nvim.appimage --appimage-extract && \
|
|
rm -rf nvim.appimage && \
|
|
ln -s ~/downloads/squashfs-root/usr/bin/nvim ~/.local/bin/nvim && \
|
|
cd ~ && \
|
|
git clone https://github.com/LazyVim/starter ~/.config/nvim && \
|
|
nvim --headless -c 'quitall'
|
|
|
|
RUN curl -sS https://starship.rs/install.sh | sh -s -- -y
|
|
RUN curl -L zellij.dev/launch | sh -s -- help
|
|
|
|
RUN python3 -m pip install --upgrade pip && \
|
|
python3 -m pip install pipx && \
|
|
python3 -m pip install hatch && \
|
|
python3 -m pipx install ansible-core && \
|
|
python3 -m pipx install lolcat && \
|
|
python3 -m pipx install pyflyby && \
|
|
python3 -m pipx install rich-cli && \
|
|
python3 -m pipx install visidata
|
|
|
|
WORKDIR /app
|
|
|
|
## DUPLICATE from Dockerfile
|
|
## building FROM learn-sql-model will cause the cache to bust for every
|
|
## change, it needs to come after the dev installs.
|
|
COPY pyproject.toml /app
|
|
COPY learn_sql_model/__about__.py /app/learn_sql_model/__about__.py
|
|
COPY README.md /app
|
|
RUN pip3 install .
|
|
COPY . .
|
|
RUN python3 -m hatch env create && \
|
|
python3 -m hatch shell
|
|
|
|
RUN stow bin -t /root/
|
|
|
|
COPY .env.dev.docker /app/.env.dev
|
|
|
|
|
|
ENTRYPOINT /tmp/zellij/bootstrap/zellij
|