本帖最后由 zengqcyxx 于 2022-10-25 02:09 编辑
Docker Usageshare current directory $ docker run -it --rm -p 8000:8000 -v $PWD:/app/public --name gohttpserver codeskyblue/gohttpserver
Share current directory with http basic auth $ docker run -it --rm -p 8000:8000 -v $PWD:/app/public --name gohttpserver \ codeskyblue/gohttpserver \ --auth-type http --auth-http username:password
Share current directory with openid auth. (Works only in netease company.) $ docker run -it --rm -p 8000:8000 -v $PWD:/app/public --name gohttpserver \ codeskyblue/gohttpserver \ --auth-type openid
To build image yourself, please change the PWD to the root of this repo. $ cd gohttpserver/ $ docker build -t codeskyblue/gohttpserver -f docker/Dockerfile . |