From 9636cccd32d295e8fd2a8516fa51897819a4eae8 Mon Sep 17 00:00:00 2001 From: Nils Uhrberg Date: Fri, 5 Apr 2024 18:34:07 +0200 Subject: [PATCH] Optimize images --- docker/dagster/Dockerfile | 2 +- docker/jupyter/Dockerfile | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/dagster/Dockerfile b/docker/dagster/Dockerfile index 467bcd8..cd800c6 100644 --- a/docker/dagster/Dockerfile +++ b/docker/dagster/Dockerfile @@ -86,7 +86,7 @@ ENV DAGSTER_HOME=/opt/dagster/dagster_home/ # Copy your workspace to /opt/dagster/app -COPY ./docker/dagster/dagster.yaml $DAGSTER_HOME/ +COPY docker/dagster/dagster.yaml $DAGSTER_HOME/ WORKDIR /opt/dagster/app diff --git a/docker/jupyter/Dockerfile b/docker/jupyter/Dockerfile index 3933cf1..9897299 100644 --- a/docker/jupyter/Dockerfile +++ b/docker/jupyter/Dockerfile @@ -60,7 +60,7 @@ RUN --mount=type=cache,target=/root/.cache \ # copy project requirement files here to ensure they will be cached. WORKDIR $PYSETUP_PATH -COPY ../../poetry.lock pyproject.toml ./ +COPY poetry.lock pyproject.toml ./ # install runtime deps - uses $POETRY_VIRTUALENVS_IN_PROJECT internally RUN --mount=type=cache,target=/root/.cache \ @@ -76,8 +76,8 @@ COPY --from=builder-base $PYSETUP_PATH $PYSETUP_PATH RUN apt-get update && apt-get install -y git -ADD ../../configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py -ADD ../../configs/jupytext.toml /root/.config/jupytext.toml +ADD configs/jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py +ADD configs/jupytext.toml /root/.config/jupytext.toml WORKDIR /workshop EXPOSE 8888 4141