binary1ne commited on
Commit
ff31135
·
verified ·
1 Parent(s): ae84b8a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -17,12 +17,11 @@ WORKDIR /opt/keycloak
17
  ENV KEYCLOAK_ADMIN=admin
18
  ENV KEYCLOAK_ADMIN_PASSWORD=admin
19
 
20
- # Expose port 7860 for Hugging Face
21
  EXPOSE 7860
22
 
23
- # Start in HTTP mode (HF will terminate TLS)
24
- ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start-dev", \
25
  "--http-port=7860", \
26
  "--hostname-strict=false", \
27
- "--hostname-strict-https=false", \
28
- "--proxy=edge"]
 
17
  ENV KEYCLOAK_ADMIN=admin
18
  ENV KEYCLOAK_ADMIN_PASSWORD=admin
19
 
20
+ # Expose the Hugging Face port
21
  EXPOSE 7860
22
 
23
+ # Start in HTTP mode (Spaces proxy handles HTTPS)
24
+ ENTRYPOINT ["/opt/keycloak/bin/kc.sh", "start", \
25
  "--http-port=7860", \
26
  "--hostname-strict=false", \
27
+ "--proxy-headers"]