From 2ef06bdeab06eb996f5c9db889178d6007539fdd Mon Sep 17 00:00:00 2001 From: itepechi Date: Sun, 24 Nov 2024 10:25:23 +0900 Subject: [PATCH] Revert "Modernise Dockerfile (kind-of)" This reverts commit 385a6c7e6c831b905119b2251a946ddb87e0fd46. Caused the error '(Code.LoadError) could not load /opt/akkoma/mix.exs. Reason: eacces' --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index fff69b308..5c07a95cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,17 +23,13 @@ WORKDIR ${BUILD_DIR} RUN mix local.hex --force \ && mix local.rebar --force -RUN \ - --mount=type=cache,target=./deps/,sharing=locked \ - --mount=type=bind,source=./mix.exs,target=./mix.exs,readonly \ - --mount=type=bind,source=./mix.lock,target=./mix.lock,readonly \ - mix deps.get --only ${MIX_ENV} +COPY ./mix.exs ./mix.lock ./ + +RUN mix deps.get --only ${MIX_ENV} COPY . . -RUN \ - --mount=type=cache,target=./deps/,sharing=locked \ - mkdir -p "${BUILD_DIR}_build/" \ +RUN mkdir -p "${BUILD_DIR}_build/" \ && mix release --path "${BUILD_DIR}_build"