-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
38 lines (29 loc) · 1.02 KB
/
Dockerfile
File metadata and controls
38 lines (29 loc) · 1.02 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
# Miniconda parent image
FROM continuumio/miniconda3:24.7.1-0
# Copy project files
COPY environment.yml /home/environment.yml
# Create a Conda environment with JupyterLab installed
RUN conda env create -f /home/environment.yml
# Activate the Conda environment
RUN echo "conda activate us_structures_analysis" >> ~/.bashrc
ENV PATH="$PATH:/opt/conda/envs/us_structures_analysis/bin"
# Create a non-root user and switch to that user
RUN useradd -m gisuser
USER gisuser
# Set the working directory to /home/gisuser
WORKDIR /home/gisuser
COPY utils.py .
COPY customization_advice.ipynb .
COPY main_analysis.ipynb .
# Make a data directory with only the Worcester data inside it
RUN mkdir -p data/Worcester
COPY data/Worcester /home/gisuser/data/Worcester
# Make a data directory with the testing work
RUN mkdir -p testing
COPY testing/get_s3_keys.ipynb /home/gisuser/testing/get_s3_keys.ipynb
# Expose the JupyterLab port
EXPOSE 8888
# Expost the Dask Dashboard port
EXPOSE 8787
# Start JupyterLab
CMD ["jupyter", "lab", "--ip=0.0.0.0"]