forked from adammc769/calico
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (27 loc) · 809 Bytes
/
Dockerfile
File metadata and controls
35 lines (27 loc) · 809 Bytes
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
# syntax=docker/dockerfile:1
FROM python:3.12-slim
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PIP_NO_CACHE_DIR=1
WORKDIR /app
# System dependencies required for Playwright browsers and build tooling
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential \
curl \
git \
tesseract-ocr \
libtesseract-dev \
libjpeg-dev \
zlib1g-dev \
libpng-dev \
ffmpeg \
libavcodec-extra \
&& rm -rf /var/lib/apt/lists/*
COPY requirements/ /tmp/requirements/
RUN pip install --upgrade pip setuptools wheel \
&& pip install -r /tmp/requirements/production.requirements.txt \
&& playwright install --with-deps chromium
COPY . /app
ENV PYTHONPATH=/app
CMD ["sleep", "infinity"]