You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
511 B
Docker
13 lines
511 B
Docker
4 months ago
|
FROM python:3.11-slim
|
||
|
|
||
|
# Get runtime dependencies
|
||
|
# glx for OpenCV, ghostscript for datasheet PDF rendering, zbar for barcode scanning, git for cloning repos
|
||
|
#RUN apt-get update && apt-get install -y libgl1-mesa-glx ghostscript libzbar0 git && apt-get clean && rm -rf /var/lib/apt/lists
|
||
|
COPY requirements.txt ./
|
||
|
#COPY config-server.yml config.yml
|
||
|
RUN pip3 install -r requirements.txt
|
||
|
COPY *.py *.txt *.toml ./
|
||
|
COPY inventory ./inventory
|
||
|
CMD ["rio", "run", "--release", "--public", "--port", "8000"]
|
||
|
EXPOSE 8000
|