Fix volare user and working directory

This commit is contained in:
Mario Romero 2023-09-06 01:04:10 -03:00
parent 6f91d4ea87
commit ce06807f84
2 changed files with 11 additions and 8 deletions

View File

@ -8,10 +8,6 @@ RUN pacman -Syuq --noconfirm
# Install packages
RUN aur-install sudo git python python-pipx xz gnu-free-fonts
# Install volare
ENV PATH="${PATH}:/root/.local/bin"
RUN pipx install volare
# Clean cache
RUN pacman -Scc
@ -19,5 +15,11 @@ RUN pacman -Scc
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
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]

View File

@ -2,13 +2,14 @@
# Dev enviroment for analog circuits development using xschem and klayout.
FROM osicstack-base-arch
# Update packages
RUN sudo pacman -Syuq --noconfirm
# Install packages
RUN aur-install xschem klayout
RUN sudo aur-install xschem klayout
# Clean cache
RUN pacman -Scc
USER designer
RUN sudo pacman -Scc
# Initialize the enviroment keeping container alive
CMD ["sleep", "infinity"]