-
Notifications
You must be signed in to change notification settings - Fork 0
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
34fa14c
commit 3f8d18e
Showing
2 changed files
with
30 additions
and
64 deletions.
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 |
---|---|---|
@@ -1,22 +1,8 @@ | ||
FROM docker.io/mambaorg/micromamba | ||
FROM docker.io/python:3.10-slim | ||
|
||
USER root | ||
|
||
ENV PATH=/opt/conda/envs/env_crop/bin:$PATH | ||
|
||
RUN apt-get update -y && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
curl gcc build-essential && \ | ||
apt-get clean | ||
|
||
RUN mkdir -p /app && chown -R mambauser:mambauser /app | ||
|
||
USER mambauser | ||
|
||
RUN micromamba create -n env_crop -c conda-forge gdal click pystac loguru && \ | ||
micromamba clean -a | ||
RUN pip install --no-cache-dir rasterio click pystac loguru pyproj shapely && \ | ||
python -c "import rasterio" | ||
|
||
ADD app.py /app/app.py | ||
|
||
ENTRYPOINT [] |
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