Created
April 27, 2022 19:36
-
-
Save abkfenris/a206e280d1b671c75a9241ae7a373261 to your computer and use it in GitHub Desktop.
Dockerfile with buildkit cache
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
#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