- 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).
推薦閱讀
- 電力自動化實用技術問答
- 反饋系統:多學科視角(原書第2版)
- AutoCAD 2012中文版繪圖設計高手速成
- INSTANT Autodesk Revit 2013 Customization with .NET How-to
- Implementing Splunk 7(Third Edition)
- INSTANT Drools Starter
- Lightning Fast Animation in Element 3D
- 分數階系統分析與控制研究
- 運動控制系統
- Mastering ServiceNow Scripting
- 單片機C語言應用100例
- Applied Data Visualization with R and ggplot2
- Learn Microsoft Azure
- Hands-On Business Intelligence with Qlik Sense
- Effective Business Intelligence with QuickSight