-
Notifications
You must be signed in to change notification settings - Fork 268
Expand file tree
/
Copy pathdev.Dockerfile
More file actions
31 lines (23 loc) · 886 Bytes
/
dev.Dockerfile
File metadata and controls
31 lines (23 loc) · 886 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
FROM python:3.10-slim
RUN mkdir -p /app/storage && ln -s /storage /app/storage # backward compability for (https://github.com/CatchTheTornado/text-extract-api/issues/85)
RUN echo 'Acquire::http::Pipeline-Depth 0;\nAcquire::http::No-Cache true;\nAcquire::BrokenProxy true;\n' > /etc/apt/apt.conf.d/99fixbadproxy
RUN apt-get clean && rm -rf /var/lib/apt/lists/* \
&& apt-get update --fix-missing \
&& apt-get install -y \
libglib2.0-0 \
libglib2.0-dev \
libgl1 \
poppler-utils \
libmagic1 \
libmagic-dev \
libpoppler-cpp-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy all project files first
# Install Python dependencies
RUN python -m venv .dvenv && \
. .dvenv/bin/activate && \
pip install --upgrade pip setuptools && \
pip install .
EXPOSE 8000
ENTRYPOINT ["/app/scripts/entrypoint.sh"]