mirror of
https://github.com/linuxserver/docker-mods.git
synced 2026-03-23 00:05:28 +08:00
switch to hybrid
This commit is contained in:
parent
2a90b6edf8
commit
e28b2e4250
@ -1,7 +1,7 @@
|
||||
# Python3 - Docker mod for code-server
|
||||
# Python3 - Docker mod for code-server/openvscode-server
|
||||
|
||||
This mod adds a python3 dev environment to code-server, to be installed/updated during container start.
|
||||
This mod adds a python3 dev environment to code-server/openvscode-server, to be installed/updated during container start.
|
||||
|
||||
In code-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-python3`
|
||||
In code-server/openvscode-server docker arguments, set an environment variable `DOCKER_MODS=linuxserver/mods:code-server-python3`
|
||||
|
||||
If adding multiple mods, enter them in an array separated by `|`, such as `DOCKER_MODS=linuxserver/mods:code-server-python3|linuxserver/mods:code-server-mod2`
|
||||
|
||||
14
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-python3-add-package/run
Executable file
14
root/etc/s6-overlay/s6-rc.d/init-mod-code-server-python3-add-package/run
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/with-contenv bash
|
||||
|
||||
if ! dpkg -l | grep python3-dev > /dev/null; then
|
||||
echo "**** Adding python3 to package install list ****"
|
||||
echo "\
|
||||
build-essential \
|
||||
libssl-dev \
|
||||
libffi-dev \
|
||||
python3-dev \
|
||||
python3-pip \
|
||||
python3-venv" >> /mod-repo-packages-to-install.list
|
||||
else
|
||||
echo "**** python3 already installed ****"
|
||||
fi
|
||||
@ -0,0 +1 @@
|
||||
oneshot
|
||||
@ -0,0 +1 @@
|
||||
/etc/s6-overlay/s6-rc.d/init-mod-code-server-python3-add-package/run
|
||||
Loading…
x
Reference in New Issue
Block a user