mirror of
https://github.com/starr-dusT/dotfiles.git
synced 2025-02-19 19:27:31 -08:00
50 lines
1.6 KiB
Docker
50 lines
1.6 KiB
Docker
# https://github.com/starr-dusT/dotfiles
|
|
# Usage: docker build -t <image name> .
|
|
# docker run -d --name <image name> -p 8080:8080 -v .:/root/src -it <container name>
|
|
|
|
ARG VARIANT="3.18.3"
|
|
|
|
# Pull alpine container from IronBank (See readme to setup pulling from IronBank with Docker)
|
|
FROM "alpine:latest"
|
|
#FROM "registry1.dso.mil/ironbank/opensource/alpinelinux/alpine:${VARIANT}"
|
|
|
|
##### BASE CONFIG #####
|
|
|
|
# Install edge repo
|
|
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories
|
|
RUN apk --no-check-certificate update
|
|
|
|
# Install Alpine packages for python
|
|
RUN apk add --no-check-certificate --virtual .base-python \
|
|
python3 py3-pip ipython py3-matplotlib py3-psutil jupyter-notebook py3-tornado
|
|
|
|
# Install Alpine build dependices for pip installs
|
|
RUN apk add --no-check-certificate --virtual .build-deps \
|
|
alpine-sdk cmake gfortran openblas-dev hdf5-dev \
|
|
python3-dev py3-numpy-dev jpeg-dev py3-qt5
|
|
|
|
# Install pip packages for python
|
|
RUN pip install \
|
|
--break-system-packages --trusted-host pypi.org --trusted-host files.pythonhosted.org \
|
|
ipykernel ipympl pandas numpy
|
|
|
|
# Install other useful packages
|
|
RUN apk add --no-check-certificate --virtual .useful-packs \
|
|
bash tmux git stow openssh vim nano
|
|
|
|
##### PERSONAL CONFIG #####
|
|
|
|
# clone dotfiles
|
|
RUN sh -c "$(curl -fsLS get.chezmoi.io)"
|
|
ENV PATH="/home/dev/bin:${PATH}"
|
|
RUN chezmoi init --apply https://github.com/starr-dusT/dotfiles
|
|
|
|
# Install other useful packages
|
|
RUN apk add --no-check-certificate --virtual .user-packs \
|
|
neovim cargo npm go
|
|
# Install plugins in image
|
|
RUN nvim --headless "+Lazy! sync" +qa
|
|
|
|
WORKDIR /root
|
|
CMD ["/bin/bash"]
|