Since the python package required to execute the program was described directly in the Dockerfile, it is centrally managed using requirements.
Fill in the required packages in requirements.in.
requirements.in
webapp2
paste
webob
Add items related to installing pip-tools, adding requirements.in
, and installing packages to the Dockerfile.
Dockerfile
RUN apt-get update && apt-get install -y python-pip
RUN pip install -U pip pip-tools
ADD ./requirements.in ./
RUN pip-compile && \
pip install -r requirements.txt && \
rm requirements.txt
-Manage requirements.txt package version number with pip-tools
Recommended Posts