Compare commits
10 Commits
1b8bd7b94f
...
6fde39d6a4
| Author | SHA1 | Date | |
|---|---|---|---|
| 6fde39d6a4 | |||
| ee64902a06 | |||
| 7cce873fc6 | |||
| bcf6088f3a | |||
| 7ad6fcd4d0 | |||
| 7b05b5ec4c | |||
| bfec74b10e | |||
| 56652719aa | |||
| 0ee1a88875 | |||
| 21de7b0121 |
@@ -1,8 +1,11 @@
|
|||||||
{
|
{
|
||||||
"title": "Romm",
|
"title": "Romm",
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
|
"author":"Kevin Whitaker <kevin@eyecreate.org>",
|
||||||
|
"description":"A beautiful, powerful, self-hosted rom manager and player.",
|
||||||
"healthCheckPath": "/",
|
"healthCheckPath": "/",
|
||||||
"httpPort": 3000,
|
"httpPort": 3000,
|
||||||
|
"memoryLimit": 1048576000,
|
||||||
"addons": {
|
"addons": {
|
||||||
"localstorage": {},
|
"localstorage": {},
|
||||||
"postgresql": {},
|
"postgresql": {},
|
||||||
@@ -10,7 +13,10 @@
|
|||||||
"loginRedirectUri": "/api/oauth/openid",
|
"loginRedirectUri": "/api/oauth/openid",
|
||||||
"logoutRedirectUri": "/",
|
"logoutRedirectUri": "/",
|
||||||
"tokenSignatureAlgorithm": "RS256"
|
"tokenSignatureAlgorithm": "RS256"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
"redis": { "noPassword": true }
|
||||||
|
},
|
||||||
|
"website":"https://romm.app/",
|
||||||
|
"icon":"file://icon.png",
|
||||||
"manifestVersion": 2
|
"manifestVersion": 2
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
tar xfz $VERSION.tar.gz --strip-components=1 -C /app/code && rm $VERSION.tar.gz
|
||||||
|
|
||||||
# Install nvm
|
# 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 \
|
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash \
|
||||||
&& . "$NVM_DIR/nvm.sh" \
|
&& . "$NVM_DIR/nvm.sh" \
|
||||||
&& nvm install 18.20.8 \
|
&& nvm install 18.20.8 \
|
||||||
@@ -62,16 +63,17 @@ RUN rm -rf /tmp/RALibretro
|
|||||||
# Install frontend dependencies
|
# Install frontend dependencies
|
||||||
WORKDIR /app/code/frontend
|
WORKDIR /app/code/frontend
|
||||||
RUN npm install
|
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/
|
WORKDIR /app/code/
|
||||||
# Install uv for the non-root user
|
# Install uv for the non-root user
|
||||||
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/
|
COPY --from=ghcr.io/astral-sh/uv:0.7.19 /uv /uvx /usr/local/bin/
|
||||||
|
|
||||||
# Install Python
|
# 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
|
# Install Python dependencies
|
||||||
|
ENV UV_PYTHON_INSTALL_DIR=/app/code/uv
|
||||||
RUN uv sync --all-extras
|
RUN uv sync --all-extras
|
||||||
|
|
||||||
# add supervisor configs
|
# add supervisor configs
|
||||||
|
|||||||
BIN
logo.png
BIN
logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 13 KiB |
10
start.sh
10
start.sh
@@ -2,10 +2,10 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
mkdir -p /app/data/library /app/data/config /app/data/assets /app/data/resources
|
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
|
# 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
|
cd /app/data
|
||||||
|
|
||||||
@@ -27,6 +27,12 @@ export OIDC_CLIENT_SECRET=${CLOUDRON_OIDC_CLIENT_SECRET}
|
|||||||
export OIDC_REDIRECT_URI="/api/oauth/openid"
|
export OIDC_REDIRECT_URI="/api/oauth/openid"
|
||||||
export OIDC_SERVER_APPLICATION_URL=${CLOUDRON_OIDC_AUTH_ENDPOINT}
|
export OIDC_SERVER_APPLICATION_URL=${CLOUDRON_OIDC_AUTH_ENDPOINT}
|
||||||
export ROMM_BASE_PATH=/app/data
|
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"
|
echo "==> Starting supervisor"
|
||||||
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Romm
|
exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Romm
|
||||||
|
|||||||
Reference in New Issue
Block a user