Created
May 14, 2025 00:55
-
-
Save agoose77/757cfff00f02b51a450c50b9d82b5be1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM docker.io/node:24-alpine | |
RUN wget https://codeload.github.com/myst-templates/book-theme/zip/refs/heads/main -O /tmp/template.zip && \ | |
unzip /tmp/template.zip -d /tmp/ && \ | |
mv /tmp/book-theme-main /app && \ | |
cd /app && \ | |
npm install && \ | |
printf '#!/bin/ash\nexport CONTENT_CDN="$1"\ncd /app\nnode server.js' > ./entrypoint && \ | |
chmod +x ./entrypoint | |
ENTRYPOINT ["/app/entrypoint"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Build in a temporary directory
podman build $(mktemp -d) -f https://gist.githubusercontent.com/agoose77/757cfff00f02b51a450c50b9d82b5be1/raw/29addb8483de30777a4f01ee56273bba47190224/Dockerfile -t myst-server podman run --rm -it --network host myst-server https://content-server.com/foo/