[Updated] Customize Dockerfile for both phase

Now, I guess it is because some packages are necessary but I do not exactly what are they. I guess some jupyter-notebook-related lib is needed here. since the original command (dockerfile) is based on repo2docker.

so,you create your image with repo2docker?

I am using the same one you used here in your examples. If I comment out
COPY utils /usr/local/lib/python3.6/dist-packages/starter_kit/ and everything below this command, I can run it success in local.

No, I used docker to build images. But as I pip many packages which I guess might fit the requirement of the aicrowd. But I am not for sure which are necessary one.

There are multiple ways to add the repo path to the environment. I create the utils as a package with init.py and run.py.

utils:
__init__.py
other.py
run.py

Then when I copy the whole utils into starter_kit then it will keep the same structure. Also, note that the docker copy command I used here does not keep the directory structure. So if you have a hierarchical file structure, then it will not keep the structure. You also need to use relative path import for this case.

1 Like

hello, have you solved the problem?

no i finally used requirement file to build my environment.