Cesar Herrera commited on
Commit
8ae7d6a
·
1 Parent(s): a13ce05

Add Dockerfile and requirements

Browse files
Files changed (2) hide show
  1. Dockerfile +19 -0
  2. requirements.txt +12 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM jupyter/datascience-notebook:python-3.11
2
+ LABEL maintainer="Cesar Herrera <c.herreraacosta@griffith.edu.au"
3
+
4
+ USER root
5
+
6
+ # Install extra requirements
7
+ RUN apt-get -y upgrade \
8
+ && apt-get -y update \
9
+ && apt-get install -y gdal-bin libgdal-dev g++ git nano
10
+
11
+ WORKDIR /task4-panel
12
+ # COPY ./requirements.txt /task4-panel/requirements.txt
13
+ COPY . /task4-panel
14
+ RUN pip3 install -r requirements.txt
15
+ WORKDIR /task4-panel/app
16
+
17
+ USER jovyan
18
+
19
+ CMD ["panel", "serve", "/task4-panel/app/main.ipynb", "--address", "0.0.0.0", "--port", "7860", "--allow-websocket-origin", "cexynature-task4-panel-dev.hf.space"]
requirements.txt ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ numpy
2
+ pandas
3
+ geopandas
4
+ jupyterlab
5
+ ipywidgets
6
+ panel
7
+ holoviews
8
+ bokeh
9
+ datashader
10
+ shapely
11
+ param
12
+ spatialpandas