From b79a4a3f2110e1bc83d91003ca3b68aeb1164730 Mon Sep 17 00:00:00 2001 From: Cedric Spindler Date: Sun, 10 Dec 2023 21:48:27 +0100 Subject: [PATCH] Improve install sequence --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 248ee7f..0c22a26 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ FROM python:3.10.13 WORKDIR /batdetect2_gui -COPY ./batdetect2_gui /batdetect2_gui +RUN mkdir -p /batdetect2_gui COPY ./requirements.txt /batdetect2_gui/requirements.txt -COPY ./credentials.py /batdetect2_gui/credentials.py RUN pip install -U pip RUN pip install --no-cache-dir -r /batdetect2_gui/requirements.txt +COPY ./batdetect2_gui /batdetect2_gui +COPY ./credentials.py /batdetect2_gui/credentials.py CMD ["gunicorn", "application:application", "--bind", "0.0.0.0"]