Docker: Alpine LinuxFirst Post: 2022-08-19Last Update: 2026-06-17安装Docker Alpine1234docker pull alpinedocker run -it --name=pycloud --privileged=true -p 8000:8000 -p 27017:27017 -p 5200:5200 -d alpine /bin/shdocker start pyclouddocker exec -it pycloud ash Alpine基础配置设置apk国内镜像12345echo "https://mirrors.aliyun.com/alpine/v3.16/main" >> /etc/apk/repositoriesecho "https://mirror.tuna.tsinghua.edu.cn/alpine/v3.16/main" >> /etc/apk/repositoriescat /etc/apk/repositoriesapk updateapk upgrade 安装常用包1apk add vim curl git nmap util-linux build-base 环境安装安装Python312345apk add python3 python3-devln -s /usr/bin/python3 /usr/bin/pythonpython -Vpython -m ensurepip --upgradeln -s /usr/bin/pip3 /usr/bin/pip 安装NodeJs12345apk add nodejsecho "https://mirrors.aliyun.com/alpine/v3.15/main" >> /etc/apk/repositoriesapk add --no-cache npmnpm config set registry https://registry.npmmirror.com/npm config get registry Web应用安装nginx12apk add nginxvim /etc/nginx/nginx.conf 安装hexo博客1234567npm install hexo-cli -gcd /opthexo init blogcd blognpm install -S hexo-theme-icarus hexo-renderer-infernohexo config theme icarushexo server CyberChef12345678cd /optgit clone https://github.com/gchq/CyberChef.gitcd CyberChefnpm install -g grunt-clinpm installgrunt prodcd build/prod/python -m http.server 8000 JupyterLab1234567apk add linux-headers --no-cachepip install jupyterlabpip install jupyterlab-language-pack-zh-CNjupyter lab --generate-configcd ~/.jupytervim jupyter_notebook_config.pyjupyter lab password Gitea12mkdir /opt/gitea/apk add gitea Code-Server1234apk add alpine-sdk bash libstdc++ libc6-compatnpm config set python python3yarn global add code-servercode-server∧