Files
belden-inventory/Dockerfile
2025-09-29 18:51:32 +00:00

13 lines
440 B
Docker

FROM python:3.13-slim
#ENV PYTHONPATH=/usr/lib/python3/dist-packages
RUN python3 -m venv venv
COPY requirements.txt ./
RUN ./venv/bin/pip install --no-cache-dir -r requirements.txt
#RUN pip3 install -r requirements.txt
COPY *.py *.txt *.toml ./
COPY inventory ./inventory
#ENV PYTHONPATH=/inventory
# CMD ["./venv/bin/python3", "-m", "rio", "run", "--release", "--public", "--port", "8000"]
CMD ["./venv/bin/python3", "run.py"]
EXPOSE 8000