skip to Main Content

Docker multistage build doesn't pass arguments to second stage

I have dockerbuild file that contains from 2 stages ARG DOTNET_VERSION=net48 ARG CONFIGURATION=Release FROM mcr.microsoft.com/dotnet/framework/sdk:4.8 AS build-env ARG DOTNET_VERSION ARG CONFIGURATION RUN echo .Net version: $env:DOTNET_VERSION FROM mcr.microsoft.com/windows/nanoserver:1809 ARG DOTNET_VERSION RUN echo .Net version: $env:DOTNET_VERSION I start it using next…

VIEW QUESTION

Dockerfile RUN layers vs script

Docker version 19.03.12, build 48a66213fe So in a dockerfile, if I have the following lines: RUN yum install aaa bbb ccc && <some cmd> && <etc> && <some cleanup> is that a best practice? Should I keep yum part separate…

VIEW QUESTION
Back To Top
Search