mirror of
https://github.com/linuxserver/docker-overseerr.git
synced 2026-02-23 00:00:48 +08:00
rebase to 3.14, update formatting, increase js mem
This commit is contained in:
parent
053af7fa88
commit
b8f0efd5cc
75
Dockerfile
75
Dockerfile
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.13
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -11,43 +11,42 @@ LABEL maintainer="nemchik"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
||||
export NODE_OPTIONS && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
export NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.13
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -11,43 +11,42 @@ LABEL maintainer="nemchik"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
||||
export NODE_OPTIONS && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
export NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.13
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.14
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
@ -11,43 +11,42 @@ LABEL maintainer="nemchik"
|
||||
ENV HOME="/config"
|
||||
|
||||
RUN \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
NODE_OPTIONS=--max_old_space_size=1024 && \
|
||||
export NODE_OPTIONS && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
curl \
|
||||
g++ \
|
||||
make \
|
||||
python3 && \
|
||||
echo "**** symlink python3 for compatibility ****" && \
|
||||
ln -s /usr/bin/python3 /usr/bin/python && \
|
||||
echo "**** install runtime packages ****" && \
|
||||
apk add --no-cache \
|
||||
yarn && \
|
||||
if [ -z ${OVERSEERR_VERSION+x} ]; then \
|
||||
OVERSEERR_VERSION=$(curl -sX GET "https://api.github.com/repos/sct/overseerr/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
|
||||
fi && \
|
||||
export COMMIT_TAG="${OVERSEERR_VERSION}" && \
|
||||
curl -o \
|
||||
/tmp/overseerr.tar.gz -L \
|
||||
"https://github.com/sct/overseerr/archive/${OVERSEERR_VERSION}.tar.gz" && \
|
||||
mkdir -p /app/overseerr && \
|
||||
tar xzf \
|
||||
/tmp/overseerr.tar.gz -C \
|
||||
/app/overseerr/ --strip-components=1 && \
|
||||
cd /app/overseerr && \
|
||||
export NODE_OPTIONS=--max_old_space_size=2048 && \
|
||||
yarn --frozen-lockfile --network-timeout 1000000 && \
|
||||
yarn build && \
|
||||
yarn install --production --ignore-scripts --prefer-offline && \
|
||||
yarn cache clean && \
|
||||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \
|
||||
rm -rf /app/overseerr/config && \
|
||||
ln -s /config /app/overseerr/config && \
|
||||
echo "**** cleanup ****" && \
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/root/.cache \
|
||||
/tmp/*
|
||||
|
||||
|
||||
@ -228,4 +228,5 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
|
||||
|
||||
## Versions
|
||||
|
||||
* **19.09.21:** - Rebase to alpine 3.14. Update code formatting. Increase js mem limit.
|
||||
* **05.04.21:** - Initial Release.
|
||||
|
||||
@ -47,4 +47,5 @@ app_setup_block: |
|
||||
|
||||
# changelog
|
||||
changelogs:
|
||||
- { date: "19.09.21:", desc: "Rebase to alpine 3.14. Update code formatting. Increase js mem limit." }
|
||||
- { date: "05.04.21:", desc: "Initial Release." }
|
||||
|
||||
@ -2,4 +2,4 @@
|
||||
|
||||
# permissions
|
||||
chown -R abc:abc \
|
||||
/config
|
||||
/config
|
||||
|
||||
@ -5,4 +5,4 @@ cd /app/overseerr || exit
|
||||
export CONFIG_DIRECTORY="/config"
|
||||
|
||||
exec \
|
||||
s6-setuidgid abc /usr/bin/yarn start
|
||||
s6-setuidgid abc /usr/bin/yarn start
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user