Skip to content

Environment based manifest.json with single asset:precompile command #1782

Closed
@akshay-soni

Description

@akshay-soni

I am trying to build environment neutral Docker image, so that same image can be used across staging and production without performing two asset:precompile (takes a lot of time to build an image).

Is there a way to create two manifest.json files? (each points to asset_host based on environment)

My current hack -
I build a production docker image and create another docker image from production as a base image for staging - with an extra bash command to replace asset_host in manifest.json with staging CDN.

Problem with this approach is - two docker images for one application, which is not a right way in terms of CI/CD pipelines.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions