-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
42 lines (34 loc) · 1.16 KB
/
Dockerfile
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
36
37
38
39
40
41
42
# Use python as the base image
FROM python:3.10.8-slim-buster
# Update the package list and install dependencies
# Note: apt-get doesn't support '>=', so it'll always install the latest version available
RUN apt-get update && \
apt-get install -y \
python3=3.7.3-1 \
python3-pip=18.1-5 \
libreoffice=1:6.1.5-3 \
tesseract-ocr \
libtesseract-dev \
build-essential=12.6 \
poppler-utils=0.71.0-5 \
libsm6 \
libxext6 \
libxrender\
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
# Upgrade pip and install wheel
# For pip, you can specify version like pip>=21.0
RUN python3 -m pip install "pip>=21.0" --no-cache-dir && \
pip install "wheel>=0.36.0" --no-cache-dir
# Copy the requirements.txt and mini-iron-ripper.py files
COPY requirements.txt /app/requirements.txt
COPY mini-iron-ripper.py /app/mini-iron-ripper.py
COPY utils /app/utils
# Set the working directory
WORKDIR /app
# Install Python dependencies
# In your requirements.txt, you can specify packages like:
# package_name>=1.0.0
RUN pip install -r requirements.txt --no-cache-dir
# Set the default command to run when the container starts
CMD ["/bin/bash"]