site

files for beauhilton.com
git clone https://git.beauhilton.com/site.git
Log | Files | Refs

commit e35771be9d0d5ab56eff67fd3c3a2e95a1e42d97
parent 80954fc42bd087c31d73c37d9121d92f74bd4f98
Author: cbeauhilton <34774299+cbeauhilton@users.noreply.github.com>
Date:   Tue, 30 Apr 2024 13:26:24 -0500

try/fail style
Diffstat:
MDockerfile | 15++++++---------
1 file changed, 6 insertions(+), 9 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -3,14 +3,11 @@ FROM ubuntu:latest # Install dependencies RUN apt-get update && apt-get install -y wget tar pandoc highlight -# Extract soupault -RUN tar -xvf soupault-4.10.0-linux-x86_64.tar.gz --skip-old-files - -# Move soupault to /usr/bin -RUN mv -v ./soupault-4.10.0-linux-x86_64/soupault /usr/bin/ - +# Try running soupault, and download/install it if not found +RUN soupault || (wget https://github.com/PataphysicalSociety/soupault/releases/download/4.10.0/soupault-4.10.0-linux-x86_64.tar.gz \ + && tar -xvf soupault-4.10.0-linux-x86_64.tar.gz \ + && mv -v ./soupault-4.10.0-linux-x86_64/soupault /usr/bin/ \ + soupault) + # Expose port 3001 EXPOSE 3001 - -# Run soupault command -CMD ["soupault"]