Make python package install cacheable

This commit is contained in:
perillamint 2024-05-17 01:15:39 +09:00
parent f88d8025b6
commit 38211e5d58

View file

@ -5,8 +5,10 @@ RUN apt-get update && apt-get install -y libgl1 && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /opt/minya RUN mkdir -p /opt/minya
WORKDIR /opt/minya WORKDIR /opt/minya
ADD . /opt/minya ADD requirements.txt /opt/minya
RUN python3 -m pip install -r requirements.txt RUN python3 -m pip install -r requirements.txt
ADD . /opt/minya
CMD ["python3", "minya.py"] CMD ["python3", "minya.py"]