Skip to content

Instantly share code, notes, and snippets.

@abkfenris
Created April 27, 2022 19:36
Show Gist options
  • Save abkfenris/a206e280d1b671c75a9241ae7a373261 to your computer and use it in GitHub Desktop.
Save abkfenris/a206e280d1b671c75a9241ae7a373261 to your computer and use it in GitHub Desktop.
Dockerfile with buildkit cache
#syntax=docker/dockerfile:1.3
FROM mambaorg/micromamba:0.21.2@sha256:27cc1034175f16df27d48a3fff8e3beab87b1c22a9c4e369a05a9125e993404b
ENV PYTHON_USER neracoos
ENV HOME /home/${PYTHON_USER}
RUN mkdir ${HOME}
WORKDIR ${HOME}
RUN --mount=type=cache,id=fvcom,target=/opt/conda/pkgs,uid=1000,gid=1000 \
--mount=type=bind,source=./datasets/UMass/FVCOM/environment.yml,target=/tmp/environment.yml \
micromamba install -y -n base -f /tmp/environment.yml
CMD [ "dagster", "api", "grpc", "-p", "4000", "-f", "repo.py", "-h", "0.0.0.0" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment