Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split Dockerfile in two stages: builder and runtime. #31

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Commits on Jan 28, 2024

  1. By dividing the Dockerfile into two stages, we significantly reduce t…

    …he size of
    
    the final image. This is because the build dependencies, which are not required
    in the final image, are excluded.
    
    You can create tags for each stage separately using the `--target` option:
    ```bash
    docker build --target builder -t pyceres:builder .
    docker build --target runtime -t pyceres:runtime .
    ```
    
    However, if you run the `docker build` command without the `--target` option, it
    will build up to the last stage defined in the Dockerfile. So, running:
    ```bash
    docker build -t pyceres:latest .
    ```
    is equivalent to specifying `--target runtime`, as runtime is the final stage in
    the Dockerfile.
    pablospe committed Jan 28, 2024
    Configuration menu
    Copy the full SHA
    f907bd7 View commit details
    Browse the repository at this point in the history
  2. fixes

    pablospe committed Jan 28, 2024
    Configuration menu
    Copy the full SHA
    520c198 View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2024

  1. Configuration menu
    Copy the full SHA
    9c88596 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ffab03 View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2024

  1. README improvements

    pablospe committed Feb 8, 2024
    Configuration menu
    Copy the full SHA
    2f0549a View commit details
    Browse the repository at this point in the history