osic-stacks/base/desktop.Dockerfile

62 lines
1.4 KiB
Docker

# OSIC Stacks - osicstacks-base-desktop
# Base image for OSIC Stacks
FROM greyltc/archlinux-aur:paru as osicstacks-base-desktop
# Update packages
RUN pacman -Syuq --noconfirm
# Install packages
RUN aur-install \
sudo \
git \
git-lfs \
python \
python-pip \
python-pipx \
xz \
gnu-free-fonts \
gvim \
ngspice \
gedit \
jupyter-notebook \
xterm
ENV TERM=xterm EDITOR=gedit
# Clean cache
RUN pacman -Scc
# Add main user
RUN useradd -m designer
RUN echo "designer ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/designer
# Install volare
USER designer
ENV PATH="${PATH}:/home/designer/.local/bin"
RUN pipx install volare
WORKDIR /home/designer
# PDK Environment variables
ENV PDK_ROOT /home/designer/.volare
ENV USER designer
# Add scripts
RUN mkdir -p .scripts
COPY --chown=designer:designer --chmod=755 scripts/* /home/designer/.scripts
ENV PATH="/home/designer/.scripts:${PATH}"
# Add motd
RUN echo "custom_motd" >> "/home/designer/.bashrc"
# Add media includes
RUN mkdir -p /home/designer/.media
COPY --chown=designer:designer include/media/* /home/designer/.media
# Setup Docker in Docker (DiD)
RUN aur-install docker
RUN sudo groupadd docker
RUN sudo usermod -aG docker $USER
# Initialize the enviroment keeping container alive
ENTRYPOINT ["start_desktop"]