16 lines
638 B
Docker
16 lines
638 B
Docker
FROM pytorch/pytorch:2.1.0-cuda11.8-cudnn8-runtime
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ca-certificates libavahi-client3 libavahi-common3 libglib2.0-0 libgl1 curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
COPY requirements.lock /tmp/requirements.lock
|
|
RUN python -m pip install --no-cache-dir --upgrade pip==24.3.1 \
|
|
&& python -m pip install --no-cache-dir -r /tmp/requirements.lock \
|
|
&& python -m pip check
|
|
COPY app /opt/tail2-app
|
|
COPY tests /opt/tail2-tests
|
|
ENV PYTHONPATH=/opt/tail2-app PYTHONUNBUFFERED=1
|
|
WORKDIR /app
|
|
ENTRYPOINT ["python", "-m", "tail2.main"]
|