Joshua Sundance Bailey commited on
Commit
b6c2c51
·
1 Parent(s): ff1122e

call streamlit directly

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -3
  2. docker-compose.yml +0 -1
Dockerfile CHANGED
@@ -7,13 +7,13 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
7
  PYTHONUNBUFFERED=1 \
8
  PATH="/home/appuser/.local/bin:$PATH"
9
 
10
- RUN pip install --user --upgrade pip
11
  COPY ./requirements.txt /home/appuser/requirements.txt
12
- RUN pip install --user -r /home/appuser/requirements.txt
13
 
14
  COPY ./langchain-streamlit-demo/* /home/appuser/langchain-streamlit-demo/
15
 
16
  WORKDIR /home/appuser/langchain-streamlit-demo
17
  EXPOSE 7860
18
 
19
- CMD ["python", "-m", "streamlit", "run", "/home/appuser/langchain-streamlit-demo/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
 
7
  PYTHONUNBUFFERED=1 \
8
  PATH="/home/appuser/.local/bin:$PATH"
9
 
10
+ RUN pip install --user --no-cache-dir --upgrade pip
11
  COPY ./requirements.txt /home/appuser/requirements.txt
12
+ RUN pip install --user --no-cache-dir -r /home/appuser/requirements.txt
13
 
14
  COPY ./langchain-streamlit-demo/* /home/appuser/langchain-streamlit-demo/
15
 
16
  WORKDIR /home/appuser/langchain-streamlit-demo
17
  EXPOSE 7860
18
 
19
+ CMD ["streamlit", "run", "/home/appuser/langchain-streamlit-demo/app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]
docker-compose.yml CHANGED
@@ -7,7 +7,6 @@ services:
7
  ports:
8
  - "${APP_PORT:-7860}:${APP_PORT:-7860}"
9
  command: [
10
- "python", "-m",
11
  "streamlit", "run",
12
  "/home/appuser/langchain-streamlit-demo/app.py",
13
  "--server.port", "${APP_PORT:-7860}",
 
7
  ports:
8
  - "${APP_PORT:-7860}:${APP_PORT:-7860}"
9
  command: [
 
10
  "streamlit", "run",
11
  "/home/appuser/langchain-streamlit-demo/app.py",
12
  "--server.port", "${APP_PORT:-7860}",