Files
filezzy-staging/worker/Dockerfile.dev
2026-02-04 14:16:04 +01:00

31 lines
914 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM node:20-bookworm-slim
# ImageMagick, Tesseract OCR (eng + fra + ara for image-ocr)
# ffmpeg, whisper, piper-tts, real-esrgan removed video/audio/image-upscale tools disabled
RUN apt-get update && apt-get install -y --no-install-recommends \
imagemagick \
tesseract-ocr \
tesseract-ocr-eng \
tesseract-ocr-fra \
tesseract-ocr-ara \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY package*.json ./
# Use BuildKit cache mount to speed up npm install on rebuilds
RUN --mount=type=cache,target=/root/.npm \
npm install
COPY . .
# Generate Prisma client (Debian uses debian-openssl-3.0.x)
RUN npx prisma generate
# Entrypoint used when running with bind mount (live code); lives outside /app so mount does not override it.
COPY scripts/docker-dev-entrypoint.sh /entrypoint.sh
RUN sed -i 's/\r$//' /entrypoint.sh && chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]