ygauravyy commited on
Commit
b4bc4c7
1 Parent(s): 3728b4e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -1
Dockerfile CHANGED
@@ -43,4 +43,13 @@ RUN wget https://github.com/facebookresearch/AnimatedDrawings/releases/download/
43
  COPY config.properties /home/torchserve/config.properties
44
 
45
  # starting command
46
- CMD /opt/conda/bin/torchserve --start --disable-token-auth --ts-config /home/torchserve/config.properties && python /home/app.py && sleep infinity
 
 
 
 
 
 
 
 
 
 
43
  COPY config.properties /home/torchserve/config.properties
44
 
45
  # starting command
46
+ #CMD /opt/conda/bin/torchserve --start --disable-token-auth --ts-config /home/torchserve/config.properties && python /home/app.py && sleep infinity
47
+
48
+ # Copy app.py into the container
49
+ COPY app.py /app.py
50
+
51
+ # Expose the port that Gradio will listen on (Hugging Face will set PORT env var)
52
+ EXPOSE 7860
53
+
54
+ # Set the command to run the Gradio interface
55
+ CMD ["python", "app.py"]