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

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).

主站蜘蛛池模板: 花莲县| 竹山县| 纳雍县| 兴文县| 鸡西市| 沙田区| 宁强县| 霍城县| 蒙山县| 洮南市| 颍上县| 巴彦淖尔市| 收藏| 五峰| 华阴市| 兴安盟| 岳阳市| 克东县| 通许县| 林西县| 仪征市| 苏尼特右旗| 甘谷县| 北流市| 连江县| 确山县| 湘潭县| 高台县| 陕西省| 东阳市| 板桥市| 平顶山市| 泉州市| 平顺县| 无极县| 灌南县| 蕉岭县| 龙陵县| 洪湖市| 咸阳市| 阳新县|