Commit 3b7b4e6f authored by nanahira's avatar nanahira

fix dockerfile

parent f38a0777
Pipeline #20859 passed with stages
in 109 minutes and 28 seconds
...@@ -2,7 +2,7 @@ FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 as base ...@@ -2,7 +2,7 @@ FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04 as base
RUN apt update \ RUN apt update \
&& apt-key adv --fetch-keys \ && apt-key adv --fetch-keys \
&& apt install --no-install-recommends -y build-essential wget git curl unzip python3 python3-pip python3-dev libgl1 libglib2.0-0 jq \ && apt install --no-install-recommends -y build-essential wget git curl unzip python3 python3-pip python3-dev libgl1 libglib2.0-0 jq libgoogle-perftools-dev \
&& apt clean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* /var/log/* && apt clean && rm -rf /var/lib/apt/lists/* /var/tmp/* /tmp/* /var/log/*
RUN useradd -ms /bin/bash sd RUN useradd -ms /bin/bash sd
...@@ -80,6 +80,6 @@ COPY --chown=sd ./requirements.txt ./requirements.txt ...@@ -80,6 +80,6 @@ COPY --chown=sd ./requirements.txt ./requirements.txt
RUN pip install --no-cache-dir -r requirements.txt --prefer-binary RUN pip install --no-cache-dir -r requirements.txt --prefer-binary
COPY --chown=sd . ./ COPY --chown=sd . ./
ENV LD_PRELOAD libtcmalloc.so
ENTRYPOINT ["python3", "webui.py"] ENTRYPOINT ["python3", "webui.py"]
CMD ["--listen", "--port", "8080"] CMD ["--listen", "--port", "8080"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment