-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Build Arg to Override Default requirements.txt #188
Comments
- Resolves GitHub Issue docker-library#188
Unfortunately this change would have not have the intended effect for the end user since the We are currently working toward removing So we recommend not using a Dockerfile of FROM python:3.6
WORKDIR /usr/src/app
COPY requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /usr/src/app This way you can change what needs to be copied in with or instead of |
@yosifkit thank you for the feedback, and for clarifying that for me. I will move forward with your suggestions, thanks. |
The standard for Python+PIP is a
requirements.txt
obviously, however in my use case for a project there are officially no required dependencies, but you can optionally install extensions that might have external dependencies. Therefore you end up with an officialrequirements.txt
that is empty, but also arequirements-dev.txt
that has all the optional requirements for development only.It would be a minor change to set this as a build time arg, and not introduce any backward compatibility issues.
And then us outliers could utilize it:
Or more realistically, this will be from a development focused
docker-compose.yml
:The text was updated successfully, but these errors were encountered: