rspec/rules/S6476/docker/rule.adoc

16 lines
365 B
Plaintext
Raw Normal View History

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
[source,docker]
----
from ubuntu:22.04 as jammy
----
== Compliant Solution
[source,docker]
----
FROM ubuntu:22.04 AS jammy
----