Compare commits

...

10 Commits

4 changed files with 20 additions and 6 deletions

View File

@@ -1,8 +1,11 @@
{
"title": "Romm",
"version": "0.1.0",
"author":"Kevin Whitaker <kevin@eyecreate.org>",
"description":"A beautiful, powerful, self-hosted rom manager and player.",
"healthCheckPath": "/",
"httpPort": 3000,
"memoryLimit": 1048576000,
"addons": {
"localstorage": {},
"postgresql": {},
@@ -10,7 +13,10 @@
"loginRedirectUri": "/api/oauth/openid",
"logoutRedirectUri": "/",
"tokenSignatureAlgorithm": "RS256"
}
},
"redis": { "noPassword": true }
},
"website":"https://romm.app/",
"icon":"file://icon.png",
"manifestVersion": 2
}

View File

@@ -39,7 +39,8 @@ RUN wget https://github.com/rommapp/romm/archive/refs/tags/$VERSION.tar.gz && \
tar xfz $VERSION.tar.gz --strip-components=1 -C /app/code && rm $VERSION.tar.gz
# Install nvm
ENV NVM_DIR="/root/.nvm"
ENV NVM_DIR="/app/code/.nvm"
RUN mkdir -p $NVM_DIR
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
&& . "$NVM_DIR/nvm.sh" \
&& nvm install 18.20.8 \
@@ -62,16 +63,17 @@ RUN rm -rf /tmp/RALibretro
# Install frontend dependencies
WORKDIR /app/code/frontend
RUN npm install
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp
RUN ln -s /tmp/vite-temp /app/code/frontend/node_modules/.vite-temp && ln -s /tmp/vite /app/code/frontend/node_modules/.vite
WORKDIR /app/code/
# Install uv for the non-root user
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/
# Install Python
RUN uv python install 3.13
RUN mkdir /app/code/uv && uv python install -i /app/code/uv 3.13
# Install Python dependencies
ENV UV_PYTHON_INSTALL_DIR=/app/code/uv
RUN uv sync --all-extras
# add supervisor configs

BIN
logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

@@ -2,10 +2,10 @@
set -eu
mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources
mkdir -p /tmp/vite-temp
mkdir -p /tmp/vite-temp /tmp/vite /tmp/cache
# ensure that data directory is owned by 'cloudron' user
chown -R cloudron:cloudron /app/data /tmp/vite-temp /root/.local/share/uv/python
chown -R cloudron:cloudron /app/data /tmp/vite-temp /tmp/vite /tmp/cache
cd /app/data
@@ -27,6 +27,12 @@ export OIDC_CLIENT_SECRET=${CLOUDRON_OIDC_CLIENT_SECRET}
export OIDC_REDIRECT_URI="/api/oauth/openid"
export OIDC_SERVER_APPLICATION_URL=${CLOUDRON_OIDC_AUTH_ENDPOINT}
export ROMM_BASE_PATH=/app/data
export UV_PYTHON_INSTALL_DIR=/app/code/uv
export DEV_HTTPS=false
export __VITE_ADDITIONAL_SERVER_ALLOWED_HOSTS=${CLOUDRON_APP_DOMAIN}
export XDG_CACHE_HOME=/tmp/cache
export REDIS_HOST=${CLOUDRON_REDIS_HOST}
export REDIS_PORT=${CLOUDRON_REDIS_PORT}
echo "==> Starting supervisor"
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Romm