Skip to content

Commit fb9923c

Browse files
committed
fix(docker): explicitly specify shell (reanahub#598)
Fix the `JSONArgsRecommended` warning by explicitly setting the shell to be used when running the Dockerfile's `CMD` command. Note that it is not possible to switch to the exec form of `CMD`, as it lacks environment variable expansion. Closes reanahub#596
1 parent 3e31e05 commit fb9923c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
# Use Ubuntu LTS base image
88
FROM docker.io/library/ubuntu:24.04
99

10+
# Configure shell options
11+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
12+
1013
# Use default answers in installation commands
1114
ENV DEBIAN_FRONTEND=noninteractive
1215

0 commit comments

Comments
 (0)