官术网_书友最值得收藏!

Setting the working directory

Since the Python HTTP server can only serve files from the current directory that it runs in, without explicitly configuring this correctly our container would show files out of the / directory. To work around this, we include WORKDIR $SRV_ROOT into the Dockerfile which changes our working directory to the one that will contain the files we want to serve up. A thing to note about this command is that you can reuse it as many times as you want and it applies to any subsequent commands in the Dockerfile (such as RUN or CMD).

主站蜘蛛池模板: 三台县| 剑阁县| 定安县| 惠水县| 桂平市| 怀远县| 大城县| 蓬安县| 南丰县| 屏南县| 马山县| 永嘉县| 富民县| 牟定县| 新疆| 高阳县| 盈江县| 天峻县| 南安市| 江川县| 云林县| 南康市| 鹰潭市| 荣成市| 吉首市| 临武县| 甘南县| 余江县| 抚远县| 通化县| 本溪市| 凤城市| 和平区| 吕梁市| 乐亭县| 宣武区| 山阴县| 沙河市| 麻江县| 永城市| 闽清县|