rspec/rules/S6476/docker/rule.adoc

18 lines
393 B
Plaintext
Raw Normal View History

== Why is this an issue?
2022-11-23 14:04:08 +01:00
The Dockerfile instructions are not case-sensitive. However, they should be in upper case to distinguish them from arguments more easily. Shared coding conventions allow teams to collaborate effectively.
=== Noncompliant code example
2022-11-23 14:04:08 +01:00
[source,docker]
----
from ubuntu:22.04 as jammy
----
=== Compliant solution
2022-11-23 14:04:08 +01:00
[source,docker]
----
FROM ubuntu:22.04 AS jammy
----