mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
* ci: updated all workflows to be pineed to commit hashes ahead of renovate connection * ci: update doc links regex * ci: bump version for codeql-action * ci: bump version for action/cache to v4.2.0 * ci: adding package-manager-cache: false to the node v5 setup steps * ci: remove the --include to test precedence as it was overriding * chore: added missing @ from commit hash * ci: updates to shas to bring up to latest, also update to renovate config to account for major versions * chore: update renovate global minimum age settings * updated node sha * Apply suggestion from @M0NsTeRRR Co-authored-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * Apply suggestion from @M0NsTeRRR Co-authored-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * Apply suggestion from @M0NsTeRRR Co-authored-by: Ludovic Ortega <ludovic.ortega@adminafk.fr> * Apply suggestion from @M0NsTeRRR * Apply suggestion from @M0NsTeRRR --------- Co-authored-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
53 lines
1.2 KiB
Docker
53 lines
1.2 KiB
Docker
FROM node:22.20.0-alpine3.22@sha256:096829fd4bb8c2ce2340ed64dd2f857951f8704325f7acf53e3dc0561c36a214 AS build_image
|
|
|
|
ARG SOURCE_DATE_EPOCH
|
|
ARG TARGETPLATFORM
|
|
ARG COMMIT_TAG
|
|
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
|
|
ENV COMMIT_TAG=${COMMIT_TAG}
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
|
|
RUN \
|
|
case "${TARGETPLATFORM}" in \
|
|
'linux/arm64' | 'linux/arm/v7') \
|
|
apk update && \
|
|
apk add --no-cache python3 make g++ gcc libc6-compat bash && \
|
|
npm install --global node-gyp \
|
|
;; \
|
|
esac
|
|
|
|
WORKDIR /app
|
|
|
|
COPY package.json pnpm-lock.yaml postinstall-win.js ./
|
|
RUN CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile
|
|
|
|
COPY . ./
|
|
RUN pnpm build
|
|
|
|
# remove development dependencies
|
|
RUN pnpm prune --prod --ignore-scripts && \
|
|
rm -rf src server .next/cache charts gen-docs docs && \
|
|
touch config/DOCKER && \
|
|
echo "{\"commitTag\": \"${COMMIT_TAG}\"}" > committag.json
|
|
|
|
FROM node:22.20.0-alpine3.22@sha256:096829fd4bb8c2ce2340ed64dd2f857951f8704325f7acf53e3dc0561c36a214
|
|
|
|
ENV PNPM_HOME="/pnpm"
|
|
ENV PATH="$PNPM_HOME:$PATH"
|
|
RUN corepack enable
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apk add --no-cache tzdata tini && rm -rf /tmp/*
|
|
|
|
# copy from build image
|
|
COPY --from=build_image /app ./
|
|
|
|
ENTRYPOINT [ "/sbin/tini", "--" ]
|
|
CMD [ "pnpm", "start" ]
|
|
|
|
EXPOSE 5055
|