fix: удаление папки с моделью после загрузки в контейнеры не требующие доступа к весам модели

main
Artem-Darius Weber 2 months ago
parent db02ddbc62
commit ac27c3ac7d

@ -2,6 +2,7 @@
FROM python:3.9 FROM python:3.9
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN rm -rf /app/models
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
EXPOSE 8000 EXPOSE 8000
CMD ["python", "test_consumer.py"] CMD ["python", "test_consumer.py"]

@ -2,5 +2,6 @@
FROM python:3.9 FROM python:3.9
WORKDIR /app WORKDIR /app
COPY . . COPY . .
RUN rm -rf /app/models
RUN pip install -r requirements.txt RUN pip install -r requirements.txt
CMD ["python", "test_producer.py"] CMD ["python", "test_producer.py"]

Loading…
Cancel
Save