Skip to content

Commit d015b6a

Browse files
committed
solved robusta_cli not found error when using -w=/workingdir
1 parent 3c56a4e commit d015b6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

+2-1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ ENV PATH="/venv/bin:$PATH"
5656
COPY ./robusta_cli ./robusta_cli
5757
COPY --from=builder /app/venv /venv
5858

59-
ENV PYTHONPATH=$PYTHONPATH:.
59+
# adding /app directory to PYTHONPATH prevents ModuleNotFoundError: No module named 'robusta_cli'
60+
ENV PYTHONPATH=$PYTHONPATH:.:/app
6061

6162
ENTRYPOINT [ "python", "/app/robusta_cli/main.py"]

0 commit comments

Comments
 (0)