Skip to content

SuperNG6/docker-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-node

https://hub.docker.com/r/superng6/node

基于nodejs官方镜像构建,添加 cnpm git curl wget tzdata 等常用工具

快速搭建hexo测试环境

使用轻量级http服务器darkhttpd,挂载hexo./public文件夹,实时查看修改效果
推荐使用VSC远程开发,操作node容器

wget -q -P /root/app https://raw.githubusercontent.com/SuperNG6/docker-node/main/docker-compose.yml
docker-compose up -d

docker-compose exec node bash  
cnpm install hexo-cli -g
hexo init hexo
cd hexo
cnpm install
hexo g

version: "3"

services:

  node:
    image: superng6/node:latest
    container_name: node
    tty: true
    volumes:
      - /root/app:/app

  web:
    image: superng6/darkhttpd:latest
    container_name: web
    command: /www/public
    ports:
      - 80:80
    volumes:
      - /root/app/hexo:/www
    depends_on:
      - node

About

基于nodejs官方镜像构建,添加 cnpm git curl wget tzdata 等常用工具

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published