Docker RUN instruction: save result to file

357 views Asked by At

How can I save the result of the RUN instruction to a file?

Dockerfile example:

# code removed for simplicity

# <--- not working, probably because RUN creates a new layer?
RUN tree -a > public/tree.txt 

ENTRYPOINT ["dotnet", "publish/MyApp.AspNetCore.dll"]
0

There are 0 answers