user59419
user59419

Reputation: 993

How to know what commands you can write in DockerFile?

I have been looking at many DockerFile in the docker hub( This is one example: https://hub.docker.com/layers/library/python/latest/images/sha256-dcd0251df5efeb39af10af998b45d21436d85e2b9facf12a8800e34ad3d84c91?context=explore) I am wondering what the procedure is for identifying what goes to DockerFile. For example, I understand what RUN, Copy, and WorkDIr commands do; however, how do you know what to include as ENV or environmental variables and, more importantly, what commands are accepted? For example, in the above link: How to figure out what commands I can use for after ENV?

ENV PYPY_VERSION=7.3.10
ENV LANG=C.UTF-8

Upvotes: 1

Views: 157

Answers (1)

Weldis
Weldis

Reputation: 113

Just look at the documentation (right sidebar) https://docs.docker.com/engine/reference/builder/

Upvotes: 1

Related Questions