Skip to content

Why does the entrypoint script copy files to /var/www, when the image build could do that? #50

Open
@kastl-ars

Description

@kastl-ars

Dear maintainers,

while trying to get OpenCost running on OpenShift, I had a look at the UI image.

Once thing I noticed is this line:

cp -rv /opt/ui/dist/* /var/www

Why is this not part of the image build process? Why is done at runtime (which requires write permissions to /var/www/ which causes problems on e.g. OpenShift?

Or, if I understand this line from the Dockerfile properly, why is this done again in the entrypoint?

COPY --from=builder /opt/ui/dist /var/www

https://github.com/opencost/opencost-ui/blob/main/Dockerfile#L30

Kind Regards,
Johannes

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions