Skip to content

Commit

Permalink
Merge pull request neonwatty#35 from neonwatty/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
neonwatty authored Nov 17, 2024
2 parents ad062c5 + 04a5e79 commit 5034a10
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 28 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
**/.DS_Store
**/*.db
**/*.pyc
meme_search_pro/db_data
meme_search_pro/db_data
**/.vscode
22 changes: 0 additions & 22 deletions .vscode/settings.json

This file was deleted.

9 changes: 5 additions & 4 deletions meme_search/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN apt-get update && apt-get install -y \

WORKDIR /home

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

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

Expand All @@ -22,11 +22,12 @@ WORKDIR /home

COPY --from=builder /usr/local/lib/python3.10/site-packages /usr/local/lib/python3.10/site-packages
COPY --from=builder /usr/local/bin /usr/local/bin
COPY ./meme_search/meme_search_app /home/meme_search
COPY ./meme_search/.streamlit /home/.streamlit
COPY meme_search_app /home/meme_search_app
COPY .streamlit /home/.streamlit
COPY data /home/data

EXPOSE 8501

HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1

ENTRYPOINT ["streamlit", "run", "/home/meme_search/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
ENTRYPOINT ["streamlit", "run", "/home/meme_search_app/app.py", "--server.port=8501", "--server.address=0.0.0.0"]
2 changes: 1 addition & 1 deletion meme_search/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ transformers
einops
sentence-transformers
faiss-cpu
streamlit
streamlit

0 comments on commit 5034a10

Please sign in to comment.