Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Robinlovelace authored Aug 11, 2023
1 parent 9d44ff4 commit b66ce61
Showing 1 changed file with 4 additions and 38 deletions.
42 changes: 4 additions & 38 deletions mamba/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,38 +1,4 @@
FROM mambaorg/micromamba:1.1.0-bullseye
USER root

RUN apt update && apt install -y \
wget \
unzip \
git \
&& rm -rf /var/lib/apt/lists/*
# USER $MAMBA_USER
# RUN micromamba install --yes --name base --channel conda-forge \
# requests \
# quarto \
# pathlib && \
# micromamba clean --all --yes

# Source: https://hub.docker.com/r/mambaorg/micromamba
# COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yaml
# COPY --chown=$MAMBA_USER:$MAMBA_USER unzip.py unzip.py
# RUN micromamba install -y -n base -f /tmp/env.yaml && \
# micromamba clean --all --yes
# ARG MAMBA_DOCKERFILE_ACTIVATE=1 # (otherwise python will not be found)
# RUN python unzip.py
# RUN micromamba install -y -n base -f geocompy-main/environment.yml && \
# micromamba clean --all --yes

# RUN sudo apt install wget
# RUN wget https://github.com/quarto-dev/quarto-cli/releases/download/v0.9.637/quarto-0.9.637-linux-amd64.deb
# RUN dpkg -i quarto*


# ENTRYPOINT ["conda", "run", "-n", "geocompy", \
# "python", "-c", \
# "import numpy; print('success!')"]
# See https://stackoverflow.com/questions/72021249/
# RUN conda config --add channels conda-forge && conda update -y conda \
# && conda install -y geopandas
# RUN wget https://github.com/geocompr/py/archive/refs/heads/main.zip
# RUN conda install -c conda-forge unzip
FROM mambaorg/micromamba:jammy
COPY --chown=$MAMBA_USER:$MAMBA_USER environment.yml /tmp/env.yaml
RUN micromamba install -y -n base -f /tmp/env.yaml && \
micromamba clean --all --yes

0 comments on commit b66ce61

Please sign in to comment.