forked from OPTICAM-instrument/phoptic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (37 loc) · 1020 Bytes
/
Copy pathDockerfile
File metadata and controls
45 lines (37 loc) · 1020 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
39
40
41
42
43
44
45
FROM python:3.12-slim
# Set working directory
WORKDIR /workspace
# Install system dependencies needed for scientific packages
RUN apt-get update && apt-get install -y \
gcc \
g++ \
gfortran \
libopenblas-dev \
liblapack-dev \
pkg-config \
git \
&& rm -rf /var/lib/apt/lists/*
# Copy the entire opticam package
COPY . /workspace/opticam
# Install opticam and its dependencies
WORKDIR /workspace/opticam
RUN pip install --no-cache-dir -e ".[docs]"
# Create directories for data and notebooks
RUN mkdir -p /workspace/data \
/workspace/notebooks \
/workspace/output
# Set working directory back to workspace root
WORKDIR /workspace
# Expose Jupyter port
EXPOSE 8888
# Configure Jupyter Lab
CMD ["jupyter-lab", \
"--ip=0.0.0.0", \
"--port=8888", \
"--no-browser", \
"--allow-root", \
"--ServerApp.token=''", \
"--ServerApp.password=''", \
"--ServerApp.allow_origin='*'", \
"--ServerApp.base_url='/'", \
"--notebook-dir=/workspace"]