14 lines
428 B
Docker
14 lines
428 B
Docker
FROM manuth/silverstripe-dev
|
|
|
|
RUN apt-get update && \
|
|
apt-get -y install sudo && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
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
|
|
|
|
USER vscode
|