From 9a359a1a4c96cfd45615ea5c24b0115f8b66face Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sun, 11 Aug 2024 18:59:02 +1000 Subject: [PATCH] fixed BUG-132 failing to create symlink on first build by being explicit in Dockerfile on how to handle content in static/ --- BUGs | 1 - Dockerfile | 7 +++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/BUGs b/BUGs index e7d5cbc..06390b0 100644 --- a/BUGs +++ b/BUGs @@ -21,4 +21,3 @@ BUG-125: when an image is highlighted, then post the contextmenu on a different BUG-128: when restarting padb underneath pa, next web requests cause a 500... (need to better catch sql I think, and maybe just retry?) BUG-130: moving files and then trying to go next page and it got confused... -BUG-131: when I build a new padev or pa, the static links are not there, but I if just rm -sf, and up -d again they appear diff --git a/Dockerfile b/Dockerfile index 7272e12..3b2590d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,13 @@ RUN groupadd -g ${PJM_GID} mythtv && useradd -r -u ${PJM_UID} -g ${PJM_GID} myth # sudo used in dev container RUN apt-get update && apt-get -y install libpq-dev mediainfo cmake libgl1-mesa-glx libglib2.0-0 libjpeg-turbo-progs ffmpeg git sudo COPY . . +# be explicity with this special directory, don't presume the COPY . . above +# has set things up perfectly from DEV to PROD +RUN rm -rf static +RUN mkdir -p static/Bin +RUN mkdir -p static/Import +RUN mkdir -p static/Storage +RUN mkdir -p static/Metadata RUN pip3 install -r requirements.txt RUN pip3 install --upgrade pillow --user EXPOSE 80