Merge pull request #2 from joshuasundance-swca/space
Browse files- .github/workflows/pull.yml +1 -0
- Dockerfile +3 -3
- docker-compose.yml +0 -1
.github/workflows/pull.yml
CHANGED
@@ -13,3 +13,4 @@ jobs:
|
|
13 |
uses: ActionsDesk/[email protected]
|
14 |
with:
|
15 |
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
|
|
|
13 |
uses: ActionsDesk/[email protected]
|
14 |
with:
|
15 |
filesizelimit: 10485760 # this is 10MB so we can sync to HF Spaces
|
16 |
+
token: ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
|
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 ["
|
|
|
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}",
|