sotiriskot commited on
Commit
5dd54ad
1 Parent(s): a3d0f1c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -8
Dockerfile CHANGED
@@ -24,18 +24,11 @@ WORKDIR /app/src
24
  # Expose the port that Gradio will run on
25
  EXPOSE 7860
26
 
27
- RUN --mount=type=secret,id=API_IP,mode=0444,required=true
28
- RUN --mount=type=secret,id=API_PORT,mode=0444,required=true
29
- RUN --mount=type=secret,id=API_ENDPOINT,mode=0444,required=true
30
-
31
  ENV PYTHONUNBUFFERED=1 \
32
  GRADIO_ALLOW_FLAGGING=never \
33
  GRADIO_NUM_PORTS=1 \
34
  GRADIO_SERVER_NAME=0.0.0.0 \
35
- SYSTEM=spaces \
36
- API_IP=$(cat /run/secrets/API_IP)
37
- API_PORT=$(cat /run/secrets/API_PORT)
38
- API_ENDPOINT=$(cat /run/secrets/API_ENDPOINT)
39
 
40
  # Run app.py when the container launches
41
  CMD ["python", "-m", "fos.server.gradio_app"]
 
24
  # Expose the port that Gradio will run on
25
  EXPOSE 7860
26
 
 
 
 
 
27
  ENV PYTHONUNBUFFERED=1 \
28
  GRADIO_ALLOW_FLAGGING=never \
29
  GRADIO_NUM_PORTS=1 \
30
  GRADIO_SERVER_NAME=0.0.0.0 \
31
+ SYSTEM=spaces
 
 
 
32
 
33
  # Run app.py when the container launches
34
  CMD ["python", "-m", "fos.server.gradio_app"]