Spaces:
Runtime error
Runtime error
Update .Dockerfile
Browse files- .Dockerfile +2 -6
.Dockerfile
CHANGED
@@ -21,16 +21,12 @@ COPY requirements.txt /app/requirements.txt
|
|
21 |
|
22 |
# Install dependencies in virtual environment
|
23 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
|
|
24 |
|
25 |
# Copy the rest of the application
|
26 |
COPY . .
|
27 |
|
28 |
-
ENV PYTHONPATH=/app
|
29 |
-
ENV PYTHONUNBUFFERED=1
|
30 |
-
|
31 |
# Expose the default Chainlit port
|
32 |
-
EXPOSE
|
33 |
|
34 |
-
# Command to run the application
|
35 |
-
# CMD . /opt/venv/bin/activate && exec chainlit run app.py --port 8000
|
36 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|
|
|
21 |
|
22 |
# Install dependencies in virtual environment
|
23 |
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
|
24 |
+
RUN pip install -qU chainlit
|
25 |
|
26 |
# Copy the rest of the application
|
27 |
COPY . .
|
28 |
|
|
|
|
|
|
|
29 |
# Expose the default Chainlit port
|
30 |
+
EXPOSE 7860
|
31 |
|
|
|
|
|
32 |
CMD ["chainlit", "run", "app.py", "--port", "7860"]
|