forked from Michael-Barletta/ERA5_interactive-cookbook
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathContainerfile
27 lines (17 loc) · 922 Bytes
/
Containerfile
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
# Use an official Python runtime as a base image
FROM docker.io/mambaorg/micromamba:latest
USER root
RUN apt-get update && apt-get install -y git-all
# Set the working directory in the container to /app
WORKDIR /home/mambauser/app
# Copy the current directory contents into the container at /usr/src/app
RUN git clone https://github.com/NicholasCote/ERA5_interactive-cookbook-ncote.git
# Install any needed packages specified in requirements.yml
RUN micromamba env create -f ERA5_interactive-cookbook-ncote/environment.yml
RUN mv ERA5_interactive-cookbook-ncote/notebooks/04_dashboard.ipynb .
RUN rm -r ERA5_interactive-cookbook-ncote/
# Activate the environment by providing ENV_NAME as an environment variable at runtime
# Make port bokeh application port to the world outside this container
EXPOSE 5006
USER mambauser
CMD ["panel", "serve", "04_dashboard.ipynb", "--allow-websocket-origin=*", "--autoreload"]