-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #278 from mrhan1993:path
patch, update dockerfile
- Loading branch information
Showing
6 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
FROM nvidia/cuda:12.2.0-runtime-ubuntu22.04 | ||
FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ENV TZ=Asia/Shanghai | ||
|
||
RUN apt-get update && \ | ||
apt-get install --no-install-recommends -y python3 python3-pip python3-virtualenv && \ | ||
apt-get install --no-install-recommends -y libopencv-dev python3-opencv && \ | ||
rm -rf /var/lib/apt/lists/* | ||
WORKDIR /app | ||
|
||
ENV VIRTUAL_ENV=/opt/venv | ||
RUN virtualenv $VIRTUAL_ENV | ||
ENV PATH="$VIRTUAL_ENV/bin:$PATH" | ||
COPY . /app | ||
|
||
RUN pip install packaging | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
WORKDIR /app | ||
RUN pip install --no-cache-dir opencv-python-headless | ||
|
||
COPY . /app/ | ||
EXPOSE 8888 | ||
|
||
CMD python3 main.py --host 0.0.0.0 --port 8888 | ||
CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "8888", "--skip-pip"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
version = '0.4.0.0' | ||
version = '0.4.0.1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters