BramVanroy commited on
Commit
81acb54
·
verified ·
1 Parent(s): bd38888

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -6
Dockerfile CHANGED
@@ -20,7 +20,7 @@ ENV HOME="/home/mateo_user"
20
  WORKDIR $HOME
21
 
22
  # --- Application Code & Dependencies ---
23
- ARG REPO_BRANCH=v1.6.0
24
  RUN git clone --depth 1 --branch ${REPO_BRANCH} https://github.com/BramVanroy/mateo-demo.git $HOME/mateo-demo
25
 
26
  WORKDIR $HOME/mateo-demo
@@ -42,7 +42,7 @@ RUN uv venv .venv --python 3.11 \
42
 
43
  # --- Runtime Configuration ---
44
  # Set runtime environment variables
45
- # NOTE: for Hugging Face spaces we set XSRF to false and demo mode to false
46
  ENV PORT=7860 \
47
  SERVER="localhost" \
48
  BASE="" \
@@ -57,9 +57,6 @@ RUN mkdir -p "$HOME/.cache" \
57
  && chown -R mateo_user:mateo_user "$HOME/.cache"
58
 
59
  # --- Entrypoint & CMD ---
60
- COPY --chown=mateo_user:mateo_user entrypoint.sh /usr/local/bin/entrypoint.sh
61
- RUN chmod +x /usr/local/bin/entrypoint.sh
62
-
63
  # Expose the port the app runs on
64
  EXPOSE $PORT
65
 
@@ -71,7 +68,8 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=60s \
71
  # Set the working directory for the application
72
  WORKDIR $HOME/mateo-demo/src/mateo_st
73
 
74
- ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
 
75
 
76
  # CMD is now empty as the entrypoint handles the final command execution
77
  CMD []
 
20
  WORKDIR $HOME
21
 
22
  # --- Application Code & Dependencies ---
23
+ ARG REPO_BRANCH=v1.6.1
24
  RUN git clone --depth 1 --branch ${REPO_BRANCH} https://github.com/BramVanroy/mateo-demo.git $HOME/mateo-demo
25
 
26
  WORKDIR $HOME/mateo-demo
 
42
 
43
  # --- Runtime Configuration ---
44
  # Set runtime environment variables
45
+ # NOTE: for HF spaces we set XSRF to false
46
  ENV PORT=7860 \
47
  SERVER="localhost" \
48
  BASE="" \
 
57
  && chown -R mateo_user:mateo_user "$HOME/.cache"
58
 
59
  # --- Entrypoint & CMD ---
 
 
 
60
  # Expose the port the app runs on
61
  EXPOSE $PORT
62
 
 
68
  # Set the working directory for the application
69
  WORKDIR $HOME/mateo-demo/src/mateo_st
70
 
71
+ RUN chmod +x $HOME/mateo-demo/docker/entrypoint.sh
72
+ ENTRYPOINT $HOME/mateo-demo/docker/entrypoint.sh
73
 
74
  # CMD is now empty as the entrypoint handles the final command execution
75
  CMD []