forked from BIMSBbioinfo/flexynesis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (31 loc) · 861 Bytes
/
Dockerfile
File metadata and controls
38 lines (31 loc) · 861 Bytes
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
# Use an official Python base image
FROM python:3.11-slim
# Install necessary system dependencies, including bash-completion
RUN apt-get update && apt-get install -y \
build-essential \
gcc \
g++ \
make \
bash \
wget \
vim \
less \
git \
curl \
bash-completion \
&& rm -rf /var/lib/apt/lists/* # Clean up to reduce image size
# Enable bash completion
RUN echo "source /usr/share/bash-completion/bash_completion" >> /etc/bash.bashrc
# Set the working directory inside the container
WORKDIR /app
# Install Jupyter Notebook and your package
RUN pip install --no-cache-dir \
jupyterlab \
flexynesis \
snakemake
# Copy Jupyter notebooks into the container
COPY examples/tutorials /app/notebooks
# Expose Jupyter Notebook port
EXPOSE 8888
# Start with a bash shell by default
CMD ["/bin/bash", "-l"]