Sign inSign up

36bian/chfs

By 36bian

•Updated almost 8 years ago

轻量级HTTP协议的文件共享服务器Docker版本,同步官方1.4,具体介绍看官网:http://iscute.cn/chfs

Image
1

296

36bian/chfs repository overview

⁠使用说明

执行docker-compose up -d启动。 默认运行在80端口,配置文件及共享均挂载/var/lib/docker/volumes/compose-chfs_chfs/_data/路径下

⁠docker-compose.yml
version: '2.0'

services:
  chfs:
    restart: unless-stopped
    image: 36bian/chfs:1.4
    ports: ["80:80"]
    volumes:
      - chfs:/root

volumes:
  chfs: {}
⁠dockerfile
FROM alpine:3.1
# alpine必须运行,否则报file not found
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2
# 拷贝到镜像
COPY config /root/config
COPY share /root/share
COPY chfs /root/
# 暴露端口
EXPOSE 80
# 映射卷
VOLUME /root
# 容器启动执行命令
ENTRYPOINT /root/chfs --file="/root/config/chfs.ini"

Tag summary

Content type

Image

Digest

Size

6.3 MB

Last updated

almost 8 years ago

docker pull 36bian/chfs:1.4