-
Notifications
You must be signed in to change notification settings - Fork 46
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
Use ENTRYPOINT
with a python command raises command not found
#101
Comments
hi @igaloly -- thank you for your interest in micromamba. Running a program from a conda environment in the ENTRYPOINT seems like it would be a common use case but somehow it hasn't made it into our test suite yet. The best solution right now would be to replace your last line with: ENTRYPOINT ["/usr/local/bin/_entrypoint.sh", "python", "-m", "service.start"] It is critical that you use the 'exec' form of I'm going to investigate if there is a more automatic way the conda environment can be activated for the We do need to add some tests and documentation around this usage pattern. |
I should also mention that you do not need: ARG MAMBA_DOCKERFILE_ACTIVATE=1 As the ENTRYPOINT commands do not run during the execution of |
Hi @wholtz, thanks for the quick and professional response! I would love to hear from you about the underlying mechanism that prevented from Moreover, I would love to understand how |
@igaloly, going back to your original example, I would recommend simply replacing The The mechanism for Does this clear up all your questions? @wholtz and I have been working on the README lately. We'd greatly appreciate any advice for how to make them more understandable! |
@maresb Definitely clears up my questions. You answered greatly. Thank you very much! :) |
Using the |
When I use a python command in an
ENTRYPOINT
layer at the end on my Dockerfile, I getbash: line 1: python: command not found
I would love to hear your insight if I've mistaken somewhere (or if the issue isn't related to Mamba) :)
This is my Dockerfile.
The text was updated successfully, but these errors were encountered: