Skip to content

Commit

Permalink
fix(docker): explicitly specify shell (#598)
Browse files Browse the repository at this point in the history
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 #596
  • Loading branch information
mdonadoni committed Aug 9, 2024
1 parent 3e31e05 commit fb9923c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
# Use Ubuntu LTS base image
FROM docker.io/library/ubuntu:24.04

# Configure shell options
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

# Use default answers in installation commands
ENV DEBIAN_FRONTEND=noninteractive

Expand Down

0 comments on commit fb9923c

Please sign in to comment.