FROM quay.io/keycloak/keycloak:latest as builderARG DB_URLARG DB_USERNAMEARG DB_PASSWORDARG HOSTNAME# Railway should automatically specify this portARG PORTENV KC_HEALTH_ENABLED=trueENV KC_METRICS_ENABLED=trueENV KC_FEATURES=token-exchangeENV KC_DB=postgresRUN /opt/keycloak/bin/kc.sh build --db=postgresENV KEYCLOAK_ADMIN=adminENV KEYCLOAK_ADMIN_PASSWORD=adminENV KC_HTTP_PORT=${PORT}ENV KC_HTTP_HOST=0.0.0.0ENV KC_PROXY=edgeENV KC_DB_URL=${DB_URL}ENV KC_DB_USERNAME=${DB_USERNAME}ENV KC_DB_PASSWORD=${DB_PASSWORD}ENV KC_HOSTNAME=${HOSTNAME}