Skip to content

Commit

Permalink
replace nvidia-docker with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Nov 12, 2024
1 parent 509da0a commit 31041aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
16 changes: 3 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,16 @@
# sudo docker run -d -p 7861:7861 --gpus all --name omniparser-container omniparser
# ```
#
# Author: Richard Abrich (@OpenAdaptAI)
# Author: Richard Abrich ([email protected])

FROM nvidia/cuda:12.3.1-devel-ubuntu22.04

# Install system dependencies with explicit OpenGL libraries
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
#git \
git-lfs \
wget \
#libgl1 \
#libglib2.0-0 \
#libsm6 \
#libxext6 \
#libxrender1 \
#libglu1-mesa \
#libglib2.0-0 \
#libsm6 \
#libxrender1 \
#libxext6 \
#python3-opencv \
libgl1 \
libglib2.0-0 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& git lfs install
Expand Down
2 changes: 1 addition & 1 deletion docker-build-ec2.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
sudo docker rm {{ project_name }}-container || true

# Build the Docker image
sudo nvidia-docker build -t {{ project_name }} .
sudo docker build -t {{ project_name }} .

# Run the Docker container on the specified port
sudo docker run -d -p 7861:7861 --gpus all --name {{ project_name }}-container {{ project_name }}
Expand Down

0 comments on commit 31041aa

Please sign in to comment.