Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -16,9 +16,10 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 16 |
|
| 17 |
# Copy application files
|
| 18 |
COPY main.py main.py
|
|
|
|
| 19 |
|
| 20 |
# Expose application port
|
| 21 |
EXPOSE 7860
|
| 22 |
|
| 23 |
# Set the entrypoint for the container
|
| 24 |
-
CMD ["
|
|
|
|
| 16 |
|
| 17 |
# Copy application files
|
| 18 |
COPY main.py main.py
|
| 19 |
+
COPY weights.py weights.py
|
| 20 |
|
| 21 |
# Expose application port
|
| 22 |
EXPOSE 7860
|
| 23 |
|
| 24 |
# Set the entrypoint for the container
|
| 25 |
+
CMD ["bash", "-c", "python weights.py && uvicorn main:app --host 0.0.0.0 --port 7860"]
|