Revert "Modernise Dockerfile (kind-of)"
This reverts commit 385a6c7e6c
.
Caused the error '(Code.LoadError) could not load /opt/akkoma/mix.exs. Reason: eacces'
This commit is contained in:
parent
91af4092dc
commit
2ef06bdeab
1 changed files with 4 additions and 8 deletions
12
Dockerfile
12
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"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue