Update Dockerfile
Browse files- Dockerfile +2 -6
Dockerfile
CHANGED
|
@@ -4,10 +4,6 @@ FROM python:3.11.3-slim
|
|
| 4 |
# Set the working directory within the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
-
RUN mkdir -p /.cache/huggingface/hub && chmod -R 777 / .cache
|
| 8 |
-
|
| 9 |
-
ENV TRANSFORMERS_CACHE / cache/huggingface/hub
|
| 10 |
-
|
| 11 |
# Copy the requirements.txt file into the container
|
| 12 |
COPY ./requirements.txt /app/requirements.txt
|
| 13 |
|
|
@@ -21,7 +17,7 @@ COPY ./app.py /app/app.py
|
|
| 21 |
COPY ./model_and_key_components.pkl /app/model_and_key_components.pkl
|
| 22 |
|
| 23 |
# Expose port 8000 for the FastAPI application
|
| 24 |
-
EXPOSE
|
| 25 |
|
| 26 |
# Define the command to run your FastAPI application
|
| 27 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 4 |
# Set the working directory within the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
# Copy the requirements.txt file into the container
|
| 8 |
COPY ./requirements.txt /app/requirements.txt
|
| 9 |
|
|
|
|
| 17 |
COPY ./model_and_key_components.pkl /app/model_and_key_components.pkl
|
| 18 |
|
| 19 |
# Expose port 8000 for the FastAPI application
|
| 20 |
+
EXPOSE 7860
|
| 21 |
|
| 22 |
# Define the command to run your FastAPI application
|
| 23 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|