mantra/.devcontainer/web.Dockerfile

14 lines
428 B
Docker
Raw Permalink Normal View History

FROM manuth/silverstripe-dev
RUN apt-get update && \
apt-get -y install sudo && \
rm -rf /var/lib/apt/lists/*
2022-03-23 10:12:25 +00:00
RUN userdel node; \
adduser --disabled-password --gecos '' vscode && \
sed -i /etc/sudoers -re 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
sed -i /etc/sudoers -re 's/^root.*/root ALL=(ALL:ALL) NOPASSWD: ALL/g' && \
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
2022-03-23 10:12:25 +00:00
USER vscode