Skip to content

Commit

Permalink
feat: improved syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
proffapt committed Jun 16, 2024
1 parent 9398fb2 commit 98d8f5c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ FROM python:3.12.3-slim

WORKDIR /app

COPY requirements.txt ./requirements.txt
COPY requirements.txt .

RUN pip install --no-cache-dir -r requirements.txt

EXPOSE 8501

COPY . /app

EXPOSE 8501

ENTRYPOINT ["streamlit", "run"]

CMD ["app.py"]
16 changes: 9 additions & 7 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
#!/bin/bash

mkdir -p ~/.streamlit/

echo "[theme]
cat >~/.streamlit/config.toml <<EOL
[theme]
primaryColor = '#F63366'
backgroundColor = '#FFFFFF'
secondaryBackgroundColor = '#F0F2F6'
textColor = '#262730'
font = 'sans serif'
[server]\n\
port = $PORT\n\
enableCORS = false\n\
headless = true\n\
\n\
" > ~/.streamlit/config.toml
[server]
port = $PORT
enableCORS = false
headless = true
EOL

0 comments on commit 98d8f5c

Please sign in to comment.