forked from onecx/onecx-shell-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
23 lines (18 loc) · 852 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM ghcr.io/onecx/docker-spa-base:1.12.0
# Copy nginx configuration
COPY nginx/locations.conf $DIR_LOCATION/locations.conf
# Copy application build
COPY dist/onecx-shell-ui/ $DIR_HTML
# Optional extend list of application environments
ENV CONFIG_ENV_LIST BFF_URL,APP_BASE_HREF,CORS_ENABLED,APP_VERSION,APP_ID,PRODUCT_NAME,AUTH_SERVICE,AUTH_SERVICE_CUSTOM_URL,AUTH_SERVICE_CUSTOM_MODULE_NAME,AUTH_SERVICE_CUSTOM_BFF_URL,ONECX_PORTAL_SEARCH_BUTTONS_REVERSED
# Application environments default values
ENV BFF_URL http://onecx-shell-bff:8080/
ENV APP_BASE_HREF /newShell/
# Definition for the custom AUTH. Default: keycloak
ENV AUTH_SERVICE keycloak
ENV AUTH_SERVICE_CUSTOM_URL ''
ENV AUTH_SERVICE_CUSTOM_MODULE_NAME ''
ENV AUTH_SERVICE_CUSTOM_BFF_URL ''
ENV ONECX_PORTAL_SEARCH_BUTTONS_REVERSED 'false'
RUN chmod 775 -R "$DIR_HTML"/assets
USER 1001