Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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
|
| 21 |
-
CMD ["
|
| 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"]
|
|
|