mirror of
https://github.com/mirego/accent.git
synced 2024-09-11 10:55:28 +03:00
Improve Dockerfile cache when debugging lib
This commit is contained in:
parent
3635a8f136
commit
fa539362e4
14
Dockerfile
14
Dockerfile
@ -37,22 +37,22 @@ RUN apt-get update -y && \
|
||||
rm -f /var/lib/apt/lists/*_*
|
||||
|
||||
COPY priv priv
|
||||
COPY vendor vendor
|
||||
|
||||
RUN cd ./vendor/language_tool/priv/native/languagetool && ./gradlew shadowJar
|
||||
RUN cp ./vendor/language_tool/priv/native/languagetool/app/build/libs/language-tool.jar priv/native/language-tool.jar
|
||||
|
||||
RUN mix local.rebar --force && \
|
||||
mix local.hex --force
|
||||
|
||||
COPY mix.* ./
|
||||
COPY lib lib
|
||||
COPY config config
|
||||
COPY mix.exs .
|
||||
COPY mix.lock .
|
||||
|
||||
RUN mix deps.get --only prod
|
||||
RUN mix deps.compile --only prod
|
||||
|
||||
COPY vendor vendor
|
||||
RUN cd ./vendor/language_tool/priv/native/languagetool && ./gradlew shadowJar
|
||||
RUN cp ./vendor/language_tool/priv/native/languagetool/app/build/libs/language-tool.jar priv/native/language-tool.jar
|
||||
|
||||
COPY lib lib
|
||||
|
||||
RUN mix compile --only prod
|
||||
|
||||
# Move static assets from other stages into the OTP release.
|
||||
|
Loading…
Reference in New Issue
Block a user