Skip to content

Commit

Permalink
CMD streamlit run; EXPOSE 7861; docker run 7861:7861
Browse files Browse the repository at this point in the history
  • Loading branch information
abrichr committed Mar 5, 2024
1 parent 102de53 commit 794fe3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker-build-ec2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
sudo nvidia-docker build -t cogvlm . || exit 1
# Run the image
sudo docker run -d -p 6092:6092 --gpus all --name cogvlm-container \
sudo docker run -d -p 7861:7861--gpus all --name cogvlm-container \
-e OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }} \
cogvlm
cogvlm
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ RUN python -m pip install --upgrade pip
RUN pip install --no-cache-dir -r requirements.txt

# Make port 80 available to the world outside this container
EXPOSE 80
EXPOSE 7861

# Define environment variable
ENV NAME World

# Run composite_demo/main.py when the container launches
CMD ["python", "composite_demo/main.py"]
CMD ["streamlit", "run", "composite_demo/main.py", "--server.port", "7861"]

0 comments on commit 794fe3e

Please sign in to comment.