-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlinux-arm64.Dockerfile
More file actions
36 lines (29 loc) · 1.23 KB
/
linux-arm64.Dockerfile
File metadata and controls
36 lines (29 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ARG UPSTREAM_IMAGE
ARG UPSTREAM_TAG_SHA
FROM node:22-alpine AS builder
RUN apk add --no-cache curl build-base python3 sqlite && \
npm install -g pnpm@10
ARG VERSION
ENV COMMIT_TAG=${VERSION}
RUN mkdir /build && \
curl -fsSL "https://github.com/seerr-team/seerr/archive/v${VERSION}.tar.gz" | tar xzf - -C "/build" --strip-components=1 && \
cd /build && \
CYPRESS_INSTALL_BINARY=0 pnpm install --frozen-lockfile && \
pnpm build && \
pnpm cache delete
FROM ${UPSTREAM_IMAGE}:${UPSTREAM_TAG_SHA}
EXPOSE 5055
ARG IMAGE_STATS
ENV IMAGE_STATS=${IMAGE_STATS} WEBUI_PORTS="5055/tcp"
RUN apk add --no-cache nodejs npm && \
npm install -g pnpm@10
COPY --from=builder /build/dist "${APP_DIR}/dist"
COPY --from=builder /build/.next "${APP_DIR}/.next"
COPY --from=builder /build/node_modules "${APP_DIR}/node_modules"
ARG VERSION
RUN curl -fsSL "https://github.com/seerr-team/seerr/archive/v${VERSION}.tar.gz" | tar xzf - -C "${APP_DIR}" --strip-components=1 && \
echo '{"commitTag": "'"${VERSION}"'"}' > "${APP_DIR}/committag.json" && \
rm -rf "${APP_DIR}/config" && ln -s "${CONFIG_DIR}" "${APP_DIR}/config" && \
chmod -R u=rwX,go=rX "${APP_DIR}"
COPY root/ /
RUN find /etc/s6-overlay/s6-rc.d -name "run*" -execdir chmod +x {} +