I'll merge this stuff in tracking for now, as there's some other stuff I'm working on and want these latest changes in.
33 lines
702 B
Docker
33 lines
702 B
Docker
FROM vato.ddns.net:8083/python:3
|
|
|
|
ARG PYPI_USERNAME
|
|
ARG PYPI_PASSWORD
|
|
|
|
RUN apt-get update
|
|
# OpenCV has a LOT of dependencies.
|
|
RUN apt-get install -y \
|
|
libglib2.0-0 \
|
|
libsm6 \
|
|
libxext6 \
|
|
libswscale-dev \
|
|
libtbb2 \
|
|
libtbb-dev \
|
|
libjpeg-dev \
|
|
libpng-dev \
|
|
libtiff-dev \
|
|
libavformat-dev \
|
|
libpq-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt /
|
|
RUN pip install --index-url https://${PYPI_USERNAME}:${PYPI_PASSWORD}@vato.ddns.net/nexus/repository/pypi-grouped/simple -r requirements.txt
|
|
|
|
WORKDIR /app
|
|
|
|
COPY ./src /app
|
|
|
|
# We aren't listening, just connecting, so probs won't need this.
|
|
# EXPOSE 1883
|
|
ENV PYTHONPATH=/app
|
|
|
|
CMD ["python", "-m", "car"] |