-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
830747e
commit 54e2e38
Showing
5 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
FROM python:3.9.17-slim-bullseye | ||
|
||
RUN apt-get update \ | ||
# dependencies for building Python packages | ||
&& apt-get install -y build-essential \ | ||
# cleaning up unused files | ||
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY ./requirements.txt /requirements.txt | ||
RUN pip install --no-cache-dir -r /requirements.txt \ | ||
&& rm -rf /requirements.txt | ||
|
||
COPY . /usr/src/app | ||
|
||
EXPOSE 8000 | ||
|
||
RUN chmod +x ./runserver.sh | ||
|
||
CMD ["sh", "./runserver.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"schemaVersion": 2, | ||
"dockerfilePath": "./Dockerfile" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
dash==2.14.2 | ||
dash_bootstrap_components==1.5.0 | ||
geopandas==0.14.2 | ||
h3==3.7.7 | ||
numpy==2.1.1 | ||
pandas==2.2.3 | ||
plotly==5.18.0 | ||
Requests==2.32.3 | ||
Shapely==2.0.6 | ||
urbanpy==0.2.1 | ||
gunicorn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/sh | ||
|
||
# Download large file from Google Drive | ||
URL="https://drive.usercontent.google.com/download?id=1U4bFDfcix7UKhCBBRQIgNFEQCFB9uG6P&export=download&confirm=t" | ||
TARGET_DIR="data" | ||
# Create the target directory if it doesn't exist | ||
mkdir -p "$TARGET_DIR" | ||
# Download the file | ||
curl -o "$TARGET_DIR/180724_dashboard_hexs.parquet" "$URL" | ||
|
||
# Run the server | ||
gunicorn app:server |