-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
50 lines (36 loc) · 1.29 KB
/
Dockerfile
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
FROM ubuntu:latest
MAINTAINER [email protected]
ENV DEBIAN_FRONTEND noninteractive
# Set environment variables
ENV PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive
# Update and install required packages
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
python3-setuptools \
python3-dev \
python3-venv \
octave \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# Create and activate a Python virtual environment
RUN python3 -m venv /opt/venv
# Ensure pip is up-to-date inside the virtual environment
RUN /opt/venv/bin/pip install --upgrade pip
# Configure pip to use updated PyPI server mirrors
RUN mkdir -p /root/.pip && echo "[global]\nindex-url = https://pypi.org/simple" > /root/.pip/pip.conf
# Install the 'eegrep' package inside the virtual environment
RUN /opt/venv/bin/pip install eegprep
# Set environment path for the virtual environment
ENV PATH="/opt/venv/bin:$PATH"
# ADD install.sh install.sh
# RUN sh ./install.sh && rm install.sh
#make it work under singularity
RUN ldconfig && mkdir -p /N/u /N/home /N/dc2 /N/soft
RUN useradd -ms /bin/bash octave
# ADD eeglab /home/octave/eeglab
# ADD load_eeglab.m /home/octave
RUN chown -R octave:octave /home/octave/
USER octave
WORKDIR /home/octave
VOLUME ["/source"]