Skip to content

Commit

Permalink
Add SHELL instruction to build_image.py to avoid JSONArgsRecommended …
Browse files Browse the repository at this point in the history
…warning
  • Loading branch information
Ivanov1ch committed Aug 12, 2024
1 parent 8476535 commit a14279f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ def create_dockerfile_finish(config: OfrakImageConfig) -> str:
)
dockerfile_finish_parts.append(f'RUN printf "{finish_makefile}" >> Makefile\n')
if config.entrypoint is not None:
dockerfile_finish_parts.append('SHELL ["/bin/bash", "-c"]\n')
dockerfile_finish_parts.append(f"ENTRYPOINT {config.entrypoint}")
return "".join(dockerfile_finish_parts)

Expand Down

0 comments on commit a14279f

Please sign in to comment.