- Deployment with Docker
- Srdjan Grubor
- 103字
- 2021-07-02 23:22:14
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).
推薦閱讀
- 數據展現的藝術
- TIBCO Spotfire:A Comprehensive Primer(Second Edition)
- 程序設計缺陷分析與實踐
- Getting Started with Containerization
- Hands-On Cybersecurity with Blockchain
- 分布式多媒體計算機系統
- 運動控制器與交流伺服系統的調試和應用
- Kubernetes for Developers
- The Python Workshop
- Salesforce Advanced Administrator Certification Guide
- Visual Studio 2010 (C#) Windows數據庫項目開發
- MATLAB-Simulink系統仿真超級學習手冊
- 寒江獨釣:Windows內核安全編程
- 3ds Max造型表現藝術
- FANUC工業機器人配置與編程技術