jpwahle commited on
Commit
3aba120
1 Parent(s): 46b5cd6

Update Dockerfile and App Port

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. README.md +1 -0
Dockerfile CHANGED
@@ -9,16 +9,17 @@ RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp
9
 
10
  # Give permissions to the default supervisord log directory
11
  RUN mkdir -p /var/log/supervisor && chmod -R 777 /var/log/supervisor
 
12
 
13
  # Install supervisord and python (for gradio)
14
  RUN apt-get update && apt-get install -y supervisor python3 python3-pip && rm -rf /var/lib/apt/lists/*
 
15
 
16
  # Copy your gradio app to the image
17
  COPY . /app/
18
  COPY ./data /app/data
19
 
20
  # Install gradio
21
- RUN pip3 install gradio
22
  RUN pip3 install -r /app/requirements.txt
23
 
24
  # Supervisord configuration
 
9
 
10
  # Give permissions to the default supervisord log directory
11
  RUN mkdir -p /var/log/supervisor && chmod -R 777 /var/log/supervisor
12
+ RUN mkdir -p /var/run/supervisor && chmod 777 /var/run/supervisor
13
 
14
  # Install supervisord and python (for gradio)
15
  RUN apt-get update && apt-get install -y supervisor python3 python3-pip && rm -rf /var/lib/apt/lists/*
16
+ RUN pip3 install gradio
17
 
18
  # Copy your gradio app to the image
19
  COPY . /app/
20
  COPY ./data /app/data
21
 
22
  # Install gradio
 
23
  RUN pip3 install -r /app/requirements.txt
24
 
25
  # Supervisord configuration
README.md CHANGED
@@ -6,6 +6,7 @@ colorTo: indigo
6
  sdk: docker
7
  app_file: app.py
8
  pinned: true
 
9
  ---
10
 
11
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
6
  sdk: docker
7
  app_file: app.py
8
  pinned: true
9
+ app_port: 8070
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference