everydaytok commited on
Commit
3f90eb5
·
verified ·
1 Parent(s): 4236622

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -17,6 +17,5 @@ RUN mkdir -p static
17
  # Expose the port Hugging Face expects
18
  EXPOSE 7860
19
 
20
- # Run the FastAPI server
21
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
22
- # CMD ["python", "app.py"]
 
17
  # Expose the port Hugging Face expects
18
  EXPOSE 7860
19
 
20
+ # Run data generation first, then start the server
21
+ CMD ["bash", "-lc", "python data_gen.py && python main.py"]