sotiriskot commited on
Commit
f785926
·
verified ·
1 Parent(s): aa169a9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -15,12 +15,6 @@ RUN python /app/download_model.py
15
  # download nltk punkt and stopwords
16
  RUN python3 -c "import nltk; nltk.download('punkt'); nltk.download('stopwords')"
17
 
18
- # Set the working directory in the container
19
- WORKDIR /app/src
20
-
21
- # Expose the port that Gradio will run on
22
- EXPOSE 7860
23
-
24
  RUN --mount=type=secret,id=API_IP,mode=0444,required=true
25
  RUN --mount=type=secret,id=API_PORT,mode=0444,required=true
26
  RUN --mount=type=secret,id=API_ENDPOINT,mode=0444,required=true
@@ -28,6 +22,12 @@ RUN $(cat /run/secrets/API_IP)
28
  RUN $(cat /run/secrets/API_PORT)
29
  RUN $(cat /run/secrets/API_ENDPOINT)
30
 
 
 
 
 
 
 
31
  ENV PYTHONUNBUFFERED=1 \
32
  GRADIO_ALLOW_FLAGGING=never \
33
  GRADIO_NUM_PORTS=1 \
 
15
  # download nltk punkt and stopwords
16
  RUN python3 -c "import nltk; nltk.download('punkt'); nltk.download('stopwords')"
17
 
 
 
 
 
 
 
18
  RUN --mount=type=secret,id=API_IP,mode=0444,required=true
19
  RUN --mount=type=secret,id=API_PORT,mode=0444,required=true
20
  RUN --mount=type=secret,id=API_ENDPOINT,mode=0444,required=true
 
22
  RUN $(cat /run/secrets/API_PORT)
23
  RUN $(cat /run/secrets/API_ENDPOINT)
24
 
25
+ # Set the working directory in the container
26
+ WORKDIR /app/src
27
+
28
+ # Expose the port that Gradio will run on
29
+ EXPOSE 7860
30
+
31
  ENV PYTHONUNBUFFERED=1 \
32
  GRADIO_ALLOW_FLAGGING=never \
33
  GRADIO_NUM_PORTS=1 \