-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
f69e502
commit 6a1aaeb
Showing
2 changed files
with
32 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
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,31 @@ | ||
FROM python:3.11-slim | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y git | ||
|
||
ENV PYTHONFAULTHANDLER=1 \ | ||
PYTHONHASHSEED=random \ | ||
PYTHONUNBUFFERED=1 | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y gdal-bin libgdal-dev g++ | ||
|
||
ENV PIP_DEFAULT_TIMEOUT=100 \ | ||
PIP_DISABLE_PIP_VERSION_CHECK=1 \ | ||
PIP_NO_CACHE_DIR=1 \ | ||
POETRY_VERSION=1.7.1 | ||
|
||
RUN pip install "poetry==$POETRY_VERSION" | ||
|
||
COPY pyproject.toml poetry.lock README.md . | ||
RUN poetry install --no-dev --no-root | ||
|
||
COPY india_forecast_app ./india_forecast_app | ||
RUN poetry build | ||
RUN poetry install | ||
|
||
COPY nwp.zarr ./nwp.zarr | ||
|
||
ENTRYPOINT ["poetry", "run" , "python3", "india_forecast_app/app.py", "--write-to-db"] |