forked from hc-sc-ocdo-bdpd/file-processing
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (26 loc) · 918 Bytes
/
Copy pathDockerfile
File metadata and controls
32 lines (26 loc) · 918 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
FROM python:3.10.12-slim
# Set working directory
WORKDIR /workspace
# docker build --build-arg DEV=true --build-arg FULL=true -t file_processing_tools:latest .
# Whether to install optional dependencies
ARG DEV=false
ARG FULL=false
RUN if [ "${FULL}" = "true" ]; then \
apt-get update && apt-get install -y \
ffmpeg \
tesseract-ocr; \
fi
RUN pip install -U \
pip \
setuptools \
wheel
COPY dist/file_processing-0.0.0-py3-none-any.whl .
RUN if [ "${DEV}" = "true" ] && [ "${FULL}" = "true" ]; then \
pip install file_processing-0.0.0-py3-none-any.whl[developer,full]; \
elif [ "${DEV}" = "true" ]; then \
pip install file_processing-0.0.0-py3-none-any.whl[developer]; \
elif [ "${FULL}" = "true" ]; then \
pip install file_processing-0.0.0-py3-none-any.whl[full]; \
else \
pip install file_processing-0.0.0-py3-none-any.whl; \
fi