-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
55 lines (50 loc) · 2.17 KB
/
Dockerfile
File metadata and controls
55 lines (50 loc) · 2.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# ---------------------------------------------------------
# Base image
# ---------------------------------------------------------
# FROM ubuntu:latest
FROM --platform=linux/amd64 ubuntu:22.04
# python:3.10-slim
# Avoid interactive prompts
ENV DEBIAN_FRONTEND=noninteractive
ENV TMPDIR=/tmp
# ---------------------------------------------------------
# System dependencies
# ---------------------------------------------------------
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
ca-certificates \
build-essential \
libhdf5-dev \
liblapack-dev \
libblas-dev \
libx11-6 \
python3 \
python3-pip \
python3-venv \
&& update-ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# ---------------------------------------------------------
# Create working directory
# ---------------------------------------------------------
WORKDIR /usr/src/eegprep
# ---------------------------------------------------------
# Clone EEGPrep from GitHub
# ---------------------------------------------------------
RUN python3 -m pip install --upgrade pip
# ---------------------------------------------------------
# Install EEGPrep from source
# Choose ONE of the 2 installation lines below
# ---------------------------------------------------------
# Full install including ICLabel (~7GB on Linux)
# RUN pip install --no-cache-dir ".[all]"
# Lean install (no ICLabel heavy models)
RUN git clone https://github.com/sccn/eegprep.git .
RUN python3 -m pip install torch --index-url https://download.pytorch.org/whl/cpu
RUN python3 -m pip install .
# RUN python3 -m pip install --no-cache-dir eegprep@git+https://github.com/sccn/eegprep.git
# RUN python3 -m pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
#RUN python3 -c "import eegprep; print(eegprep.__version__)"
# ---------------------------------------------------------
# Set entrypoint
# ---------------------------------------------------------
ENTRYPOINT ["/bin/bash"]