seanpedrickcase commited on
Commit
2b16125
·
1 Parent(s): ee015e4

Updated Dockerfile to create output folder correctly and enable regional AWS STS endpoint

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -29,8 +29,8 @@ RUN useradd -m -u 1000 user
29
  # Change ownership of /home/user directory
30
  RUN chown -R user:user /home/user
31
 
32
- # Create the output files directory and set its permissions
33
- RUN mkdir -p /home/user/output && chown -R user:user /home/user/output
34
 
35
  # Switch to the "user" user
36
  USER user
@@ -45,6 +45,7 @@ ENV HOME=/home/user \
45
  GRADIO_SERVER_NAME=0.0.0.0 \
46
  GRADIO_SERVER_PORT=7860 \
47
  GRADIO_THEME=huggingface \
 
48
  #GRADIO_ROOT_PATH=/data-text-search \
49
  SYSTEM=spaces
50
 
 
29
  # Change ownership of /home/user directory
30
  RUN chown -R user:user /home/user
31
 
32
+ # Make output folder
33
+ RUN mkdir -p /home/user/app/output && chown -R user:user /home/user/app/output
34
 
35
  # Switch to the "user" user
36
  USER user
 
45
  GRADIO_SERVER_NAME=0.0.0.0 \
46
  GRADIO_SERVER_PORT=7860 \
47
  GRADIO_THEME=huggingface \
48
+ AWS_STS_REGIONAL_ENDPOINT=regional \
49
  #GRADIO_ROOT_PATH=/data-text-search \
50
  SYSTEM=spaces
51