# syntax=docker/dockerfile:1 FROM node:21-bookworm-slim as ente-builder ARG ENTE_BRANCH=main ARG ENTE_APP=photos ENV NEXT_PUBLIC_ENTE_ENDPOINT=DOCKER_RUNTIME_REPLACE_ENDPOINT \ NEXT_PUBLIC_ENTE_ALBUMS_ENDPOINT=DOCKER_RUNTIME_REPLACE_ALBUMS_ENDPOINT RUN apt update && apt install -y ca-certificates git git-lfs && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN git clone --recursive --depth=1 --shallow-submodules --branch="${ENTE_BRANCH}" https://github.com/ente-io/ente.git . WORKDIR /app/web RUN yarn install && \ yarn build:${ENTE_APP} FROM nginx:1.27-alpine-slim ARG ENTE_APP=photos COPY --from=ente-builder /app/web/apps/${ENTE_APP}/out /usr/share/nginx/html COPY <