Skip to content

Docker build issues #188

@SaschaJohn

Description

@SaschaJohn

Hello,

I recognized two issue with the Dockerfile

  1. COPY DISCLAIMER /DISCLAIMER -> fails due to file doesnt'exist

ENV VITE_POLARIS_API_URL=http://polaris:8181
ENV VITE_POLARIS_REALM=POLARIS
ENV VITE_POLARIS_PRINCIPAL_SCOPE=PRINCIPAL_ROLE:ALL
ENV VITE_OAUTH_TOKEN_URL=http://polaris:8181/api/catalog/v1/oauth/tokens
ENV VITE_POLARIS_REALM_HEADER_NAME=Polaris-Realm

are injected at build time. As they're static other env variables aren't taken into consideration.
I recognized it, because I deployed it behind a reverse proxy, and VITE_POLARIS_API_URL was always set to http://polaris:8181
I removed them for the docker build which makes the config.js working as designed

I'll raise a PR with the suggested removals

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions