Skip to content

Commit

Permalink
chore: split all RUN commands to debug build step
Browse files Browse the repository at this point in the history
  • Loading branch information
ydennisy committed Mar 24, 2024
1 parent 3405839 commit 8d1989b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 62 deletions.
10 changes: 5 additions & 5 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ WORKDIR /app

COPY . ./

RUN pip install --no-cache-dir torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu && \
pip install --no-cache-dir pipenv==2023.12.1 \
pipenv requirements > requirements.txt \
pip install --no-cache-dir -r requirements.txt && \
python -c 'from sentence_transformers import SentenceTransformer; SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", cache_folder="./app/artefacts")'
RUN pip install --no-cache-dir torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu &&
RUN pip install --no-cache-dir pipenv==2023.12.1
RUN pipenv requirements > requirements.txt
RUN pip install --no-cache-dir -r requirements.txt &&
RUN python -c 'from sentence_transformers import SentenceTransformer; SentenceTransformer("sentence-transformers/all-MiniLM-L6-v2", cache_folder="./app/artefacts")'

CMD exec uvicorn app.main:app --host $HOST --port $PORT --workers 2
File renamed without changes.
57 changes: 0 additions & 57 deletions scratch.md

This file was deleted.

0 comments on commit 8d1989b

Please sign in to comment.