-
-
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.
feat(containers): Add sat container (#110)
* feat(containers): Add sat container * fix(containers): Eumdac in sat container * feat(containers): Add sat container
- Loading branch information
Showing
3 changed files
with
647 additions
and
0 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
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,22 @@ | ||
# Build a virtualenv using miniconda | ||
# * Install required compilation tools for wheels via apt | ||
# * Install required non-python binaries via conda | ||
FROM quay.io/condaforge/miniforge3:latest AS build-venv | ||
RUN apt -qq update && apt -qq install -y build-essential | ||
RUN conda create -p /venv python=3.12 | ||
RUN /venv/bin/pip install --upgrade -q pip wheel setuptools | ||
RUN conda install -p /venv -c conda-forge -y cartopy satpy[all] numpy | ||
ENV GDAL_CONFIG=/venv/bin/gdal-config | ||
|
||
# Build the virtualenv | ||
FROM build-venv as install-reqs | ||
RUN /venv/bin/python -m pip install -q diskcache pyproj pyresample xarray pyyaml ocf_blosc2 tqdm eumdac | ||
|
||
|
||
# Copy the virtualenv into a distroless image | ||
FROM gcr.io/distroless/python3-debian11 | ||
COPY --from=install-reqs /venv /venv | ||
COPY . /app | ||
WORKDIR /app | ||
ENTRYPOINT ["/venv/bin/python3", "download_process_sat.py"] | ||
|
Oops, something went wrong.