mirror of
https://github.com/immich-app/project-template.git
synced 2026-09-30 13:32:55 +08:00
24 lines
521 B
Docker
24 lines
521 B
Docker
# dev build
|
|
FROM node:24-bookworm-slim AS dev
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
tini git build-essential python3 curl && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0 \
|
|
CI=1 \
|
|
COREPACK_HOME=/tmp
|
|
|
|
RUN corepack enable pnpm
|
|
|
|
WORKDIR /usr/src/app
|
|
|
|
ENV PATH="${PATH}:/usr/src/app/server/bin:/usr/src/app/web/bin" \
|
|
IMMICH_ENV=development
|
|
|
|
COPY docker/entrypoint.sh /entrypoint.sh
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
ENTRYPOINT ["tini", "--", "/entrypoint.sh"]
|