Skip to content

Commit

Permalink
updated Dockerfile to add Jupyter funtionality
Browse files Browse the repository at this point in the history
  • Loading branch information
bbowles1 committed May 13, 2024
1 parent 8573b4d commit cc427bb
Show file tree
Hide file tree
Showing 3 changed files with 2,284 additions and 610 deletions.
17 changes: 12 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@ COPY pyproject.toml ./
# upgrade pip
RUN pip install --upgrade pip setuptools wheel

# Install dependencies
#RUN poetry install --no-root -vvv

# Copy the rest of the application code
COPY . .
# COPY . .
# not needed because we are mounting

# append Python module dir to Path
RUN PATH="${PATH}:/app/modules"

# Install dependencies
RUN poetry install --no-root --no-cache -vvv

# Set the default command to run the application
CMD ["python", "framepool_annotate.py"]
#CMD ["python", "framepool_annotate.py"]

# Expose port 8888 for Jupyter
EXPOSE 8080

# Command to run Jupyter notebook
CMD ["poetry", "run", "jupyter-notebook", "--ip=0.0.0.0", "--port=8080", "--no-browser", "--allow-root"]
Loading

0 comments on commit cc427bb

Please sign in to comment.