written by Minjoo Lee
[Web]
1. Dockerfile
- final code (highlights)
Instead of that highlights, I have tried the code below first.
ENV PATH . # Install Python modules needed by the Python app COPY requirements.txt $PATH/ RUN pip install --no-cache-dir -r requirements.txt # install Python modules # copied files required for the app to run COPY app.py $PATH/ COPY templates/ $PATH/templates/ COPY static/ $PATH/static/ |
- ENV PATH . : Error code. I still don't know why it makes error...
So, I decided to use absolute path.
Reference: 완벽한 IT 인프라 구축을 위한 Docker 2판 (Asa Shiho 지음, 이영란 옮김)