vrkforever
commited on
Commit
·
cdd9d8d
1
Parent(s):
bbfdc22
updated with dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
@@ -6,7 +6,10 @@ COPY ./requirements.txt /code/requirements.txt
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
|
|
|
|
|
|
9 |
COPY ./app.py /code/app.py
|
10 |
COPY ./disaster_classification_model.joblib /code/disaster_classification_model.joblib
|
11 |
|
12 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
6 |
|
7 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
8 |
|
9 |
+
# Create and set permissions for the NLTK data directory
|
10 |
+
RUN mkdir -p /nltk_data && chmod -R 777 /nltk_data
|
11 |
+
|
12 |
COPY ./app.py /code/app.py
|
13 |
COPY ./disaster_classification_model.joblib /code/disaster_classification_model.joblib
|
14 |
|
15 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|