Update Dockerfile
Browse files- Dockerfile +4 -14
Dockerfile
CHANGED
@@ -27,17 +27,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
27 |
# Copy the rest of the application code (app.py) into the container at /code
|
28 |
COPY app.py .
|
29 |
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
EXPOSE 8000
|
35 |
-
|
36 |
-
# Define environment variable (optional, can be set at runtime too)
|
37 |
-
# ENV HF_HOME=/data # Example if models needed downloading, not relevant here.
|
38 |
-
|
39 |
-
# Run app.py when the container launches using uvicorn
|
40 |
-
# --host 0.0.0.0 makes the server accessible from outside the container
|
41 |
-
# --port 8000 specifies the port to run on inside the container
|
42 |
-
# app:app tells uvicorn to run the 'app' variable (your FastAPI instance) from the 'app.py' file
|
43 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
27 |
# Copy the rest of the application code (app.py) into the container at /code
|
28 |
COPY app.py .
|
29 |
|
30 |
+
|
31 |
+
EXPOSE 7860
|
32 |
+
|
33 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|