diff --git a/Dockerfile b/Dockerfile index e71c9fce..7b128d91 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,9 @@ FROM node:20-slim AS builder +RUN apt-get update && apt-get install -y --no-install-recommends curl \ + && rm -rf /var/lib/apt/lists/* + RUN npm install -g pnpm@latest WORKDIR /app diff --git a/README.md b/README.md index 29e880ec..a60d384a 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ You can also optionally create an `.env` file and populate it with the following - `VITE_DEFAULT_PUBKEYS` - A comma-separated list of hex pubkeys for bootstrapping web of trust - `VITE_PLATFORM_URL` - The url where the app will be hosted - `VITE_PLATFORM_NAME` - The name of the app -- `VITE_PLATFORM_LOGO` - A logo url for the app +- `VITE_PLATFORM_LOGO` - A logo url for the app. Can be a local path or https link. Must be a PNG file. - `VITE_PLATFORM_RELAYS` - A list of comma-separated relay urls that will make flotilla operate in "platform mode". Disables all space browse/add/select functionality and makes the first platform relay the home page. - `VITE_PLATFORM_ACCENT` - A hex color for the app's accent color - `VITE_PLATFORM_DESCRIPTION` - A description of the app diff --git a/build.sh b/build.sh index 142ba981..1381aeb0 100755 --- a/build.sh +++ b/build.sh @@ -17,8 +17,8 @@ if [[ -z $VITE_BUILD_HASH ]]; then export VITE_BUILD_HASH=$(git rev-parse --short HEAD) fi -if [[ $VITE_PLATFORM_LOGO =~ ^https://* ]]; then - curl $VITE_PLATFORM_LOGO > static/logo.png +if [[ $VITE_PLATFORM_LOGO =~ ^https:// ]]; then + curl -fSL "$VITE_PLATFORM_LOGO" -o static/logo.png export VITE_PLATFORM_LOGO=static/logo.png fi