2022-03-23 09:01:48 +00:00
|
|
|
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 && \
|
2022-03-23 09:01:48 +00:00
|
|
|
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
|