{"id":1371,"date":"2024-07-23T12:39:13","date_gmt":"2024-07-23T12:39:13","guid":{"rendered":"https:\/\/dockerpros.com\/?post_type=glossary&#038;p=1371"},"modified":"2024-07-23T12:39:13","modified_gmt":"2024-07-23T12:39:13","slug":"dockerfile-exported-artifacts","status":"publish","type":"glossary","link":"https:\/\/dockerpros.com\/de\/wiki\/dockerfile-exported-artifacts\/","title":{"rendered":"Dockerfile \u2013exported-artifacts"},"content":{"rendered":"<h2>Understanding Dockerfile &#8211;exported-artifacts<\/h2>\n<p>In the realm of containerization, Docker has become a cornerstone technology for developing, shipping, and running applications. Among its myriad features, one of the lesser-known yet powerful functionalities is the <code>--exported-artifacts<\/code> option in <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>. This feature allows developers to define a set of files or directories from a build context that should be made available for use by subsequent stages in a multi-stage Docker build or for other operations, thereby enhancing the efficiency and modularity of containerized applications. This article delves into the intricacies of <code>--exported-artifacts<\/code>, its use cases, and how it can be effectively implemented in Docker workflows.<\/p>\n<h2>The Role of Dockerfile in Containerization<\/h2>\n<p>Dockerfiles serve as blueprints for Docker images, containing a series of instructions that dictate how an <span class=\"glossaryai-tooltip glossary-term-651\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\" target=\"_blank\">image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">An image is a visual representation of an object or scene, typically composed of pixels in digital formats. It can convey information, evoke emotions, and facilitate communication across various media.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is built. These instructions can include commands to install software, <span class=\"glossaryai-tooltip glossary-term-673\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/copy\/\" target=\"_blank\">copy<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">COPY is a command in computer programming and data management that facilitates the duplication of files or data from one location to another, ensuring data integrity and accessibility.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/copy\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> files, set environment variables, and more. The ability to break down complex applications into manageable layers enhances build efficiency and allows for easier updates and maintenance. <\/p>\n<p>However, as applications grow in complexity, so too does the need for clear and efficient management of the artifacts produced during the build process. This is where <code>--exported-artifacts<\/code> comes into play, allowing developers to streamline their workflows and manage outputs effectively.<\/p>\n<h2>Multi-Stage Builds<\/h2>\n<p>Before diving into <code>--exported-artifacts<\/code>, it&#8217;s essential to understand multi-stage builds. Introduced in Docker 17.05, multi-stage builds enable developers to use multiple <code>FROM<\/code> instructions in a single <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>. This feature allows for the separation of the build environment from the runtime environment, significantly reducing the size of the final <span class=\"glossaryai-tooltip glossary-term-651\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\" target=\"_blank\">image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">An image is a visual representation of an object or scene, typically composed of pixels in digital formats. It can convey information, evoke emotions, and facilitate communication across various media.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> by including only the necessary artifacts.<\/p>\n<p>In typical multi-stage builds, developers compile or prepare their application in one stage, and then <span class=\"glossaryai-tooltip glossary-term-673\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/copy\/\" target=\"_blank\">copy<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">COPY is a command in computer programming and data management that facilitates the duplication of files or data from one location to another, ensuring data integrity and accessibility.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/copy\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> the necessary artifacts to a subsequent stage for final packaging. The <code>--exported-artifacts<\/code> option enhances this process by explicitly specifying which files should be made available across stages, thereby improving build clarity and reducing the likelihood of issues arising from unintended file inclusions.<\/p>\n<h2>Syntax of &#8211;exported-artifacts<\/h2>\n<p>The <code>--exported-artifacts<\/code> option can be used in conjunction with the <code>docker build<\/code> command. Its syntax is as follows:<\/p>\n<pre><code class=\"language-bash\">docker build --exported-artifacts  .<\/code><\/pre>\n<p>Here, &#8220; refers to the path of the files or directories you want to export from the build context. This path can be relative to the build context or an absolute path. <\/p>\n<h3>Example of Usage<\/h3>\n<p>Let\u2019s take a closer look at how <code>--exported-artifacts<\/code> can be used in a practical scenario.<\/p>\n<pre><code class=\"language-Dockerfile\"># Stage 1: Build the application\nFROM golang:1.16 AS builder\n\nWORKDIR \/app\nCOPY . .\nRUN go build -o myapp .\n\n# Stage 2: Prepare the final image\nFROM alpine:latest\n\nCOPY --from=builder \/app\/myapp \/usr\/local\/bin\/myapp\n\nCMD [\"myapp\"]<\/code><\/pre>\n<p>In this example, we have a <span class=\"glossaryai-tooltip glossary-term-740\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/multi-stage-build\/\" target=\"_blank\">multi-stage build<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A multi-stage build is a Docker optimization technique that enables the separation of build and runtime environments. By using multiple FROM statements in a single Dockerfile, developers can streamline image size and enhance security by excluding unnecessary build dependencies in the final image.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/multi-stage-build\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> for a Go application. The first stage builds the application, while the second stage creates a minimal Alpine <span class=\"glossaryai-tooltip glossary-term-651\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\" target=\"_blank\">image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">An image is a visual representation of an object or scene, typically composed of pixels in digital formats. It can convey information, evoke emotions, and facilitate communication across various media.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> to <span class=\"glossaryai-tooltip glossary-term-672\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/run\/\" target=\"_blank\">run<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">\"RUN\" refers to a command in various programming languages and operating systems to execute a specified program or script. It initiates processes, providing a controlled environment for task execution.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/run\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> it. If we wanted to export additional files, we could modify the Docker build command as follows:<\/p>\n<pre><code class=\"language-bash\">docker build --exported-artifacts \/app\/myapp .<\/code><\/pre>\n<p>This command would ensure that <code>myapp<\/code> is accessible for any further operations or stages in the build process.<\/p>\n<h2>Use Cases for &#8211;exported-artifacts<\/h2>\n<h3>1. Sharing Build Outputs<\/h3>\n<p>In complex applications, there may be multiple components requiring access to common artifacts. The <code>--exported-artifacts<\/code> option facilitates sharing these artifacts between different stages or even different Dockerfiles, which is particularly useful in microservices architectures where various services depend on shared libraries or binaries.<\/p>\n<h3>2. Improving Build Efficiency<\/h3>\n<p>By explicitly stating which artifacts to export, Docker can optimize the build process, reducing unnecessary copying of files and potentially speeding up subsequent stages. This efficiency can have a significant impact on continuous integration (CI) pipelines, where build times are critical.<\/p>\n<h3>3. Simplifying Debugging<\/h3>\n<p>When debugging complex builds, it can be beneficial to isolate specific artifacts. The <code>--exported-artifacts<\/code> option can help developers focus on particular outputs, allowing for easier analysis of build failures or unexpected behaviors.<\/p>\n<h2>Best Practices for Using &#8211;exported-artifacts<\/h2>\n<h3>1. Limit the Scope<\/h3>\n<p>While it may be tempting to export broad sets of artifacts, it\u2019s best to limit the scope to only those necessary. This not only improves build efficiency but also minimizes the risk of inadvertently including sensitive or unnecessary files.<\/p>\n<h3>2. Combine with Multi-Stage Builds<\/h3>\n<p>Leveraging the power of multi-stage builds alongside <code>--exported-artifacts<\/code> creates a powerful synergy that can significantly improve the design and maintainability of Dockerfiles. This approach encourages a clean separation of concerns and enhances clarity in build processes.<\/p>\n<h3>3. Document Your Artifacts<\/h3>\n<p>As your Dockerfiles become more complex, it&#8217;s crucial to maintain clear documentation regarding which artifacts are exported and why. This documentation can aid other developers in understanding the build process and the purpose behind specific artifacts, facilitating collaboration.<\/p>\n<h3>4. Use Version Control<\/h3>\n<p>When working with multi-stage builds and exported artifacts, version control becomes imperative. Ensure that any changes to the <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> or build context are tracked to maintain consistency and reproducibility in your builds.<\/p>\n<h2>Common Pitfalls<\/h2>\n<h3>1. Overlooking File Permissions<\/h3>\n<p>When exporting artifacts, developers may overlook file permissions, which can lead to runtime errors. Always double-check permissions on exported files to ensure that they are executable or readable as required by the final <span class=\"glossaryai-tooltip glossary-term-651\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\" target=\"_blank\">image<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">An image is a visual representation of an object or scene, typically composed of pixels in digital formats. It can convey information, evoke emotions, and facilitate communication across various media.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/image\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span>.<\/p>\n<h3>2. Unintended Overwrites<\/h3>\n<p>When exporting multiple artifacts, there\u2019s a risk of unintentionally overwriting files. To mitigate this risk, use clear and distinct naming conventions for artifacts, and verify the integrity of files post-export.<\/p>\n<h3>3. Ignoring Build Caching<\/h3>\n<p>Docker utilizes a caching mechanism to speed up builds, but the introduction of <code>--exported-artifacts<\/code> can sometimes complicate this process. Be mindful of how changes to exported artifacts may trigger cache invalidation and plan your build strategies accordingly.<\/p>\n<h2>Conclusion<\/h2>\n<p>The <code>--exported-artifacts<\/code> feature in <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> is an invaluable tool for developers looking to streamline their build processes and enhance the modularity of their applications. By promoting efficient sharing of artifacts, improving build times, and simplifying debugging, this feature fits seamlessly into modern development workflows. <\/p>\n<p>As containerization continues to evolve, embracing advanced features like <code>--exported-artifacts<\/code> will be crucial for developers seeking to maintain high standards of code quality and application performance. Whether you are working in a microservices architecture, maintaining complex CI\/CD pipelines, or simply aiming to enhance the maintainability of your Docker projects, the effective use of <code>--exported-artifacts<\/code> can significantly impact your success in the containerization landscape. <\/p>\n<p>By understanding its nuances and implementing best practices, developers can harness the full potential of Docker and create robust, efficient, and maintainable applications. As you experiment with <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">A Dockerfile is a script containing a series of instructions to automate the creation of Docker images. It specifies the base image, application dependencies, and configuration, facilitating consistent deployment across environments.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> and its capabilities, keep in mind the importance of documentation, version control, and continuous learning to stay ahead in this dynamic field.<\/p>","protected":false},"excerpt":{"rendered":"<p>Die Option `\u2013exported-artifacts` in <span class=\"glossaryai-tooltip glossary-term-652\"><span class=\"glossaryai-link\"><a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\" target=\"_blank\">Dockerfile<\/a><\/span><span class=\"gai-content-hidden glossaryai-tooltip-content\"><span class=\"gai-tooltip-body\"><span class=\"glossaryai-tooltip-text\">Eine Dockerfile ist ein Skript, das eine Reihe von Anweisungen zur Automatisierung der Erstellung von Docker-Images enth\u00e4lt. Sie gibt das Basis-Image, die Anwendungsabh\u00e4ngigkeiten und die Konfiguration an und erm\u00f6glicht so eine konsistente Bereitstellung \u00fcber verschiedene Umgebungen hinweg.<span class=\"glossaryai-more-link\"> <a href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile\/\">More \u00bb<\/a><\/span><\/span><\/span><\/span><\/span> Erm\u00f6glicht Benutzern, Ausgaben von Build-Prozessen anzugeben, was eine vereinfachte Artefaktverwaltung f\u00f6rdert. Dies verbessert die Reproduzierbarkeit und Integration in CI\/CD-Workflows.<\/p>","protected":false},"author":1,"featured_media":2055,"parent":0,"template":"","glossary-cat":[],"class_list":["post-1371","glossary","type-glossary","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Dockerfile -exported-artifacts - Dockerpros<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile-exported-artifacts\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Dockerfile -exported-artifacts - Dockerpros\" \/>\n<meta property=\"og:description\" content=\"The `--exported-artifacts` option in Dockerfile enables users to specify outputs from build processes, facilitating streamlined artifact management. This enhances reproducibility and integration in CI\/CD workflows.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dockerpros.com\/de\/wiki\/dockerfile-exported-artifacts\/\" \/>\n<meta property=\"og:site_name\" content=\"Dockerpros\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data1\" content=\"5\u00a0Minuten\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/\",\"url\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/\",\"name\":\"Dockerfile -exported-artifacts - Dockerpros\",\"isPartOf\":{\"@id\":\"https:\/\/dockerpros.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg\",\"datePublished\":\"2024-07-23T12:39:13+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#breadcrumb\"},\"inLanguage\":\"de\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg\",\"width\":800,\"height\":600,\"caption\":\"dockerfile-exported-artifacts-2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dockerpros.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Glossary\",\"item\":\"https:\/\/dockerpros.com\/fr\/wiki\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Dockerfile &#8211;exported-artifacts\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dockerpros.com\/#website\",\"url\":\"https:\/\/dockerpros.com\/\",\"name\":\"Dockerpros\",\"description\":\"DockerPros \u2013 Your Ultimate Docker Resource Hub\",\"publisher\":{\"@id\":\"https:\/\/dockerpros.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dockerpros.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"de\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dockerpros.com\/#organization\",\"name\":\"Dockerpros\",\"url\":\"https:\/\/dockerpros.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de\",\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png\",\"contentUrl\":\"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png\",\"width\":532,\"height\":114,\"caption\":\"Dockerpros\"},\"image\":{\"@id\":\"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Dockerfile -exportierte-Artefakte -Docker-Profis","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/dockerpros.com\/de\/wiki\/dockerfile-exported-artifacts\/","og_locale":"de_DE","og_type":"article","og_title":"Dockerfile -exported-artifacts - Dockerpros","og_description":"The `--exported-artifacts` option in Dockerfile enables users to specify outputs from build processes, facilitating streamlined artifact management. This enhances reproducibility and integration in CI\/CD workflows.","og_url":"https:\/\/dockerpros.com\/de\/wiki\/dockerfile-exported-artifacts\/","og_site_name":"Dockerpros","og_image":[{"width":800,"height":600,"url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Gesch\u00e4tzte Lesezeit":"5\u00a0Minuten"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/","url":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/","name":"Dockerfile -exportierte-Artefakte -Docker-Profis","isPartOf":{"@id":"https:\/\/dockerpros.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage"},"image":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage"},"thumbnailUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg","datePublished":"2024-07-23T12:39:13+00:00","breadcrumb":{"@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#breadcrumb"},"inLanguage":"de","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/"]}]},{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#primaryimage","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/dockerfile-exported-artifacts_1371.jpg","width":800,"height":600,"caption":"dockerfile-exported-artifacts-2"},{"@type":"BreadcrumbList","@id":"https:\/\/dockerpros.com\/wiki\/dockerfile-exported-artifacts\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dockerpros.com\/"},{"@type":"ListItem","position":2,"name":"Glossary","item":"https:\/\/dockerpros.com\/fr\/wiki\/"},{"@type":"ListItem","position":3,"name":"Dockerfile &#8211;exported-artifacts"}]},{"@type":"WebSite","@id":"https:\/\/dockerpros.com\/#website","url":"https:\/\/dockerpros.com\/","name":"Docker-Profis","description":"DockerPros \u2013 Ihr umfassender Docker-Ressourcen-Hub","publisher":{"@id":"https:\/\/dockerpros.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dockerpros.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"de"},{"@type":"Organization","@id":"https:\/\/dockerpros.com\/#organization","name":"Docker-Profis","url":"https:\/\/dockerpros.com\/","logo":{"@type":"ImageObject","inLanguage":"de","@id":"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/","url":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png","contentUrl":"https:\/\/dockerpros.com\/wp-content\/uploads\/2024\/07\/Dockerpros_logo_blanco.png","width":532,"height":114,"caption":"Dockerpros"},"image":{"@id":"https:\/\/dockerpros.com\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary\/1371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary"}],"about":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/types\/glossary"}],"author":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":0,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary\/1371\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/media\/2055"}],"wp:attachment":[{"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/media?parent=1371"}],"wp:term":[{"taxonomy":"glossary-cat","embeddable":true,"href":"https:\/\/dockerpros.com\/de\/wp-json\/wp\/v2\/glossary-cat?post=1371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}