Some participants are building parts of their solution (eg compiling C++ files) from their
While this works and is perfectly allowed, it is not optimal as this build step will take place during the evaluation, taking up precious time!
Instead, you can move these steps to a
postBuild file. If you want this to be a shell script, make sure the first line is
#!/bin/bash. It will be run as part of the image building process, after everything else. (The time spent building the image doesn’t count against the evaluation timeouts.)
See here for more details about the
postBuild file: https://repo2docker.readthedocs.io/en/latest/config_files.html#postbuild-run-code-after-installing-the-environment
And see here to read more general documentation about AIcrowd’s image building process: How to specify runtime environment for your submission