-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: David Young <[email protected]>
- Loading branch information
1 parent
ddaafeb
commit 3c2ddd3
Showing
2 changed files
with
2 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,3 @@ | ||
ARG VERSION | ||
|
||
FROM ghcr.io/elfhosted/alpine:rolling@sha256:672b59dc4580b8aaae42e839c878501109ed7a810072c872363250930899bf16 | ||
|
||
# set environment variables | ||
ENV HOME="/config" | ||
|
||
RUN \ | ||
echo "**** install build packages ****" && \ | ||
apk add --no-cache --virtual=build-dependencies \ | ||
curl \ | ||
g++ \ | ||
make \ | ||
python3 && \ | ||
echo "**** install runtime packages ****" && \ | ||
apk add --no-cache \ | ||
yarn && \ | ||
if [ -z ${VERSION+x} ]; then \ | ||
VERSION=$(curl -sX GET "https://api.github.com/repos/Fallenbagel/jellyseerr/releases/latest" \ | ||
| awk '/tag_name/{print $4;exit}' FS='[""]'); \ | ||
fi && \ | ||
export COMMIT_TAG="${VERSION}" && \ | ||
curl -o \ | ||
/tmp/overseerr.tar.gz -L \ | ||
"https://github.com/Fallenbagel/jellyseerr/archive/${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 && \ | ||
CYPRESS_INSTALL_BINARY=0 yarn --frozen-lockfile --network-timeout 1000000 && \ | ||
yarn build && \ | ||
yarn install --production --ignore-scripts --prefer-offline && \ | ||
yarn cache clean && \ | ||
rm -rf \ | ||
/app/overseerr/src \ | ||
/app/overseerr/server && \ | ||
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json && \ | ||
rm -rf /app/overseerr/config && \ | ||
ln -s /config /app/overseerr/config && \ | ||
touch /config/DOCKER && \ | ||
echo "**** cleanup ****" && \ | ||
apk del --purge \ | ||
build-dependencies && \ | ||
rm -rf \ | ||
/root/.cache \ | ||
/tmp/* \ | ||
/app/overseerr/.next/cache/* | ||
|
||
COPY ./apps/overseerr/entrypoint.sh / | ||
|
||
# ports and volumes | ||
EXPOSE 5055 | ||
VOLUME /config | ||
USER 568 | ||
CMD ["/entrypoint.sh"] | ||
|
||
FROM fallenbagel/jellyseerr:${VERSION} as upstream | ||
ENV CONFIG_DIRECTORY="/config" |
This file was deleted.
Oops, something went wrong.