WebashalarForML
commited on
Commit
•
df05d1c
1
Parent(s):
d03480f
Update Dockerfile
Browse files- Dockerfile +4 -4
Dockerfile
CHANGED
@@ -11,12 +11,12 @@ WORKDIR /app
|
|
11 |
# Copy the requirements file into the container at /app
|
12 |
COPY requirements.txt /app/
|
13 |
|
14 |
-
# Install SpaCy model directly in Dockerfile
|
15 |
-
RUN python -m spacy download en_core_web_sm
|
16 |
-
|
17 |
# Install any needed packages specified in requirements.txt
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|
19 |
|
|
|
|
|
|
|
20 |
# Create the directory for session storage and set permissions
|
21 |
RUN mkdir -p /tmp/flask_sessions && chmod 777 /tmp/flask_sessions
|
22 |
|
@@ -38,4 +38,4 @@ ENV FLASK_APP=app.py
|
|
38 |
ENV FLASK_ENV=production
|
39 |
|
40 |
# Command to run the application
|
41 |
-
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|
|
|
11 |
# Copy the requirements file into the container at /app
|
12 |
COPY requirements.txt /app/
|
13 |
|
|
|
|
|
|
|
14 |
# Install any needed packages specified in requirements.txt
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
16 |
|
17 |
+
# Install SpaCy model directly in Dockerfile after installing SpaCy
|
18 |
+
RUN python -m spacy download en_core_web_sm
|
19 |
+
|
20 |
# Create the directory for session storage and set permissions
|
21 |
RUN mkdir -p /tmp/flask_sessions && chmod 777 /tmp/flask_sessions
|
22 |
|
|
|
38 |
ENV FLASK_ENV=production
|
39 |
|
40 |
# Command to run the application
|
41 |
+
CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"]
|