mirror of
https://github.com/aleleba/aleleba-vscode-dockerfile-configuration.git
synced 2025-06-19 04:18:11 -06:00
Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
eaa8cc886d | |||
ff85878b7e | |||
c189c21474 | |||
49ffeccf7e | |||
72cc00272c | |||
1e044e4959 | |||
4bcf68cd67 |
@ -3,7 +3,6 @@ FROM ubuntu:22.04
|
|||||||
# Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions
|
# Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions
|
||||||
RUN apt update
|
RUN apt update
|
||||||
RUN apt install -y sudo
|
RUN apt install -y sudo
|
||||||
RUN addgroup nonroot
|
|
||||||
|
|
||||||
RUN sudo apt-get update
|
RUN sudo apt-get update
|
||||||
#Instalando Curl
|
#Instalando Curl
|
||||||
@ -33,4 +32,4 @@ RUN sudo sysctl -w fs.inotify.max_user_watches=524288
|
|||||||
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
ADD ./entrypoint.sh /usr/bin/entrypoint.sh
|
||||||
RUN sudo chmod +x /usr/bin/entrypoint.sh
|
RUN sudo chmod +x /usr/bin/entrypoint.sh
|
||||||
|
|
||||||
ENTRYPOINT ["bash", "/usr/bin/entrypoint.sh"]
|
ENTRYPOINT ["/usr/bin/entrypoint.sh"]
|
@ -1,6 +1,16 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
exec [[ -z "${HOME_USER}" ]] && adduser --disabled-password --gecos "" vscode \
|
if [[ -z "${HOME_USER}" ]]; then
|
||||||
echo 'vscode ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers \
|
HOME_USER="vscode"
|
||||||
|| adduser --disabled-password --gecos "" ${HOME_USER} \
|
fi
|
||||||
echo '${HOME_USER} ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
||||||
exec [[ -z "${VSCODE_TUNNEL_NAME}" ]] && code tunnel --accept-server-license-terms || code tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
addgroup nonroot
|
||||||
|
adduser --disabled-password --gecos "" ${HOME_USER}
|
||||||
|
echo "${HOME_USER} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||||
|
|
||||||
|
# sudo su - ${HOME_USER}
|
||||||
|
|
||||||
|
if [[ -z "${VSCODE_TUNNEL_NAME}" ]]; then
|
||||||
|
code-server tunnel --accept-server-license-terms
|
||||||
|
else
|
||||||
|
code-server tunnel --accept-server-license-terms --name ${VSCODE_TUNNEL_NAME}
|
||||||
|
fi
|
||||||
|
@ -1 +1 @@
|
|||||||
1.0.2
|
1.0.9
|
Reference in New Issue
Block a user