osic-stacks/base/arch.Dockerfile

34 lines
860 B
Docker
Raw Normal View History

2023-09-03 22:53:58 +00:00
# OSIC Stacks - osicstack-base-arch
# Base image for OSIC Stacks
FROM greyltc/archlinux-aur:paru
# Update packages
RUN pacman -Syuq --noconfirm
# Install packages
2023-09-12 19:04:44 +00:00
RUN aur-install sudo git python python-pip python-pipx xz gnu-free-fonts vim ngspice gedit
2023-09-03 22:53:58 +00:00
# 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
2023-09-06 04:04:10 +00:00
# Install volare
USER designer
ENV PATH="${PATH}:/home/designer/.local/bin"
RUN pipx install volare
WORKDIR /home/designer
2023-09-12 19:04:44 +00:00
# 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/klayout /home/designer/.scripts
ENV PATH="/home/designer/.scripts:${PATH}"
2023-09-03 22:53:58 +00:00
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]