-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
46 lines (38 loc) · 1010 Bytes
/
Dockerfile
File metadata and controls
46 lines (38 loc) · 1010 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
36
37
38
39
40
41
42
43
44
45
46
FROM pklinker/coral-python:1
# Install additional dependencies
RUN apt-get update && apt-get install -y \
python3-pip \
python3-opencv \
python3-numpy \
libopencv-dev \
wget \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install additional Python libraries
RUN pip3 install --no-cache-dir \
numpy \
pillow \
pycoral \
pytesseract \
scikit-learn \
matplotlib \
pynetworktables \
cscore \
opencv-contrib-python \
tqdm \
imgaug
# Set up directories for the application
WORKDIR /app
RUN mkdir -p /app/calibration /app/training /app/models /app/data
# Copy project files
COPY vision_processing.py /app/
COPY labels.txt /app/
COPY README.md /app/
# This will be the volume mount point for the USB device
VOLUME /dev/bus/usb
# Make the scripts executable
RUN chmod +x /app/vision_processing.py
# Set environment variables
ENV PYTHONPATH=/app
# Set entry point to run the vision processing script
CMD ["python3", "/app/vision_processing.py"]