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
Unable to run single python script by pipenv during docker build #1391
Comments
And changing Dockerfile to:
results in
|
I guess you can probably achieve the same with: |
@JacekJab you can’t run pipenv shell inside of Docker due to it not supporting sub shells as noted in the stacktrace. In your case I believe what you’re looking for is |
Using pipenv run directory/somescript.py causees pipenv to fail, because it looks for directory/somescript.py in PATH
Describe your environment
$ python -V
python 3.6$ pipenv --version
masterExpected result
pipenv runs script using created virtualn environment
Actual result
Step 26/29 : RUN ls $PROJECT_PATH | grep setup.py
---> Running in 7811236ec5ee
setup.py
Removing intermediate container 7811236ec5ee
---> ba280fab02c3
Step 27/29 : RUN pipenv run $PROJECT_PATH/setup.py develop
---> Running in b48df28fbe12
Error: the command /opt/project/setup.py could not be found within PATH.
Steps to replicate
extract from dockerfile:
RUN ls $PROJECT_PATH | grep setup.py
RUN pipenv run $PROJECT_PATH/setup.py develop
The text was updated successfully, but these errors were encountered: