@@ -3916,6 +3916,7 @@ COPY --from=base foo2 foo3
39163916WORKDIR /
39173917RUN echo bar > foo4
39183918RUN ["ls"]
3919+ EXPOSE 2375 5000 1234/udp
39193920` )
39203921
39213922 dir := integration .Tmpdir (
@@ -3962,7 +3963,7 @@ RUN ["ls"]
39623963 // this depends on busybox. should be ok after freezing images
39633964 require .Equal (t , 4 , len (ociimg .RootFS .DiffIDs ))
39643965
3965- require .Equal (t , 7 , len (ociimg .History ))
3966+ require .Equal (t , 8 , len (ociimg .History ))
39663967 require .Contains (t , ociimg .History [2 ].CreatedBy , "lbl=val" )
39673968 require .Equal (t , true , ociimg .History [2 ].EmptyLayer )
39683969 require .NotNil (t , ociimg .History [2 ].Created )
@@ -3978,6 +3979,9 @@ RUN ["ls"]
39783979 require .Contains (t , ociimg .History [6 ].CreatedBy , "RUN ls" )
39793980 require .Equal (t , false , ociimg .History [6 ].EmptyLayer )
39803981 require .NotNil (t , ociimg .History [6 ].Created )
3982+ require .Contains (t , ociimg .History [7 ].CreatedBy , "EXPOSE [1234/udp 2375/tcp 5000/tcp]" )
3983+ require .Equal (t , true , ociimg .History [7 ].EmptyLayer )
3984+ require .NotNil (t , ociimg .History [7 ].Created )
39813985}
39823986
39833987// moby/buildkit#5505
0 commit comments