Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Git
.git
.gitignore

.cursor

# Python cache
__pycache__
*.pyc
*.pyo
*.pyd
.Python
*.so
*.egg
*.egg-info
dist
build
.ipynb_checkpoints

# Virtual environments
venv
env
ENV

# Jupyter
.ipynb_checkpoints
*.ipynb_checkpoints

# Test outputs
*.avi
*.mp4
*.png
*.tif
*.npz
encoded*
decoded*

# BUT allow requirements.txt
!requirements.txt

# IDE
.vscode
.idea

# OS
.DS_Store
Thumbs.db
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.ipynb_checkpoints
__pycache__
_tmp/
30 changes: 30 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM ubuntu:22.04

RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-pip \
git \
ffmpeg \
wget \
&& rm -rf /var/lib/apt/lists/*

# Install venv dependencies, create venv, and upgrade pip in venv
RUN python3 -m pip install --no-cache-dir --upgrade pip \
&& python3 -m pip install --no-cache-dir virtualenv

RUN python3 -m virtualenv /root/envs/VCF

COPY requirements.txt .

RUN /root/envs/VCF/bin/pip install --no-cache-dir --upgrade pip \
&& /root/envs/VCF/bin/pip install --no-cache-dir jupyterlab \
&& /root/envs/VCF/bin/pip install -r requirements.txt \
&& /root/envs/VCF/bin/pip install --no-cache-dir ipykernel \
&& /root/envs/VCF/bin/python -m ipykernel install --user --name vcf --display-name "Python (VCF)"


COPY . .

EXPOSE 8888 80

CMD ["/root/envs/VCF/bin/python", "-m", "jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--allow-root"]
8 changes: 4 additions & 4 deletions notebooks/2D-DCT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "6a0c815c-386d-4bad-b37d-bb6c58f88fdd",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -319,9 +319,9 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python (myenv)",
"language": "python",
"name": "python3"
"name": "myenv"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -333,7 +333,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.2"
"version": "3.10.11"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion notebooks/2D-DWT.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.14.2"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down
Loading