ankush-003 commited on
Commit
7e781a9
·
verified ·
1 Parent(s): 13802b3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -14,21 +14,17 @@ RUN apt-get update && \
14
  ENV VIRTUAL_ENV=/opt/venv
15
  RUN python3 -m venv $VIRTUAL_ENV
16
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
 
17
 
18
  # Copy requirements first to leverage Docker cache
19
  COPY requirements.txt /app/requirements.txt
20
 
21
  # Install dependencies in virtual environment
22
- RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
23
-
24
- # Copy the rest of the application
25
- COPY . .
26
-
27
- ENV PYTHONPATH=/app
28
- ENV PYTHONUNBUFFERED=1
29
 
30
  # Expose the default Chainlit port
31
- EXPOSE 8000
32
 
33
  # Command to run the application
34
  # CMD . /opt/venv/bin/activate && exec chainlit run app.py --port 8000
 
14
  ENV VIRTUAL_ENV=/opt/venv
15
  RUN python3 -m venv $VIRTUAL_ENV
16
  ENV PATH="$VIRTUAL_ENV/bin:$PATH"
17
+ RUN which python
18
 
19
  # Copy requirements first to leverage Docker cache
20
  COPY requirements.txt /app/requirements.txt
21
 
22
  # Install dependencies in virtual environment
23
+ RUN /opt/venv/bin/pip install --no-cache-dir --upgrade -r /app/requirements.txt
24
+ RUN /opt/venv/bin/pip install -qU chainlit
 
 
 
 
 
25
 
26
  # Expose the default Chainlit port
27
+ EXPOSE 7860
28
 
29
  # Command to run the application
30
  # CMD . /opt/venv/bin/activate && exec chainlit run app.py --port 8000