|
|
|
@ -1,9 +1,10 @@
|
|
|
|
|
|
|
|
# syntax=docker/dockerfile:1.7
|
|
|
|
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu22.04
|
|
|
|
FROM nvidia/cuda:12.8.1-cudnn-runtime-ubuntu22.04
|
|
|
|
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive \
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
PYTHONDONTWRITEBYTECODE=1 \
|
|
|
|
PYTHONUNBUFFERED=1 \
|
|
|
|
PYTHONUNBUFFERED=1 \
|
|
|
|
PYTHONPATH=/app
|
|
|
|
PYTHONPATH=/app:/app/NN_server
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
|
|
|
|
@ -21,14 +22,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
COPY deploy/requirements/nn_gpu_pinned.txt /tmp/nn_gpu_pinned.txt
|
|
|
|
COPY deploy/requirements/nn_gpu_pinned.txt /tmp/nn_gpu_pinned.txt
|
|
|
|
COPY deploy/requirements/nn_common.txt /tmp/nn_common.txt
|
|
|
|
COPY deploy/requirements/nn_common.txt /tmp/nn_common.txt
|
|
|
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install --no-cache-dir --upgrade pip && \
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
|
|
python3 -m pip install --no-cache-dir -r /tmp/nn_gpu_pinned.txt && \
|
|
|
|
python3 -m pip install --upgrade pip && \
|
|
|
|
python3 -m pip install --no-cache-dir -r /tmp/nn_common.txt
|
|
|
|
python3 -m pip install -r /tmp/nn_gpu_pinned.txt && \
|
|
|
|
|
|
|
|
python3 -m pip install -r /tmp/nn_common.txt
|
|
|
|
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
COPY . /app
|
|
|
|
|
|
|
|
|
|
|
|
RUN python3 -m pip install --no-cache-dir -e /app/torchsig
|
|
|
|
RUN --mount=type=cache,target=/root/.cache/pip \
|
|
|
|
|
|
|
|
python3 -m pip install -e /app/torchsig
|
|
|
|
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
WORKDIR /app/NN_server
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 8080
|
|
|
|
CMD ["python3", "-m", "NN_server.server"]
|
|
|
|
CMD ["python3", "server.py"]
|
|
|
|
|