Skip to content

Commit

Permalink
switch to bash as default shell, add more preinstalled packages
Browse files Browse the repository at this point in the history
  • Loading branch information
liuwen committed Sep 21, 2024
1 parent f7c0ac7 commit 7a3b866
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deepnote-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
with:
context: ./deepnote
file: ./deepnote/Dockerfile
platforms: linux/amd64,linux/arm64
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository_owner }}/deepnote-mpdev:latest
tags: ghcr.io/${{ github.repository_owner }}/deepnote-mpdev:latest

9 changes: 5 additions & 4 deletions deepnote/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bitnami/python:3.12-debian-12
FROM bitnami/python:3.11-debian-12

# Switch to root user
USER root
Expand Down Expand Up @@ -40,12 +40,13 @@ ENV PATH="/root/work/venv/bin:${PATH}"

# Copy requirements.txt and install Python dependencies
COPY requirements.txt /root/work/
RUN . /root/work/venv/bin/activate && pip install -r /root/work/requirements.txt
WORKDIR /root/work

# Set default shell to zsh
SHELL ["/bin/zsh", "-c"]
SHELL ["/bin/bash", "-c"]

# Activate virtual environment in zsh
RUN echo "source /root/work/venv/bin/activate" >> ~/.zshrc
RUN echo "source /root/work/venv/bin/activate" >> ~/.bashrc

CMD ["/bin/zsh"]
CMD ["/bin/bash"]
27 changes: 27 additions & 0 deletions deepnote/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
pydantic
httpx
fastapi
agate
arrow
datascience
dill
fiona
jsonify
keras
matplotlib
nltk
numpy
pandas
psycopg2-binary
requests
scikit-learn
scipy
scrapy
seaborn
six
spacy
squarify
sympy
tabulate
tensorflow
textblob
torch
torchvision
urllib3

0 comments on commit 7a3b866

Please sign in to comment.