docker: slim

This commit is contained in:
Timothy J. Baek 2024-01-07 08:28:35 -08:00
parent 31bd6dfc15
commit c68bb3b950
2 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ RUN npm ci
COPY . .
RUN npm run build
FROM python:3.11-bookworm as base
FROM python:3.11-slim-bookworm as base
ENV ENV=prod
@ -28,7 +28,7 @@ WORKDIR /app/backend
COPY ./backend/requirements.txt ./requirements.txt
RUN pip3 install -r requirements.txt
RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
# RUN python -c "from sentence_transformers import SentenceTransformer; model = SentenceTransformer('all-MiniLM-L6-v2')"
COPY ./backend .