chore(devcontainer): store Dialyzer PLTs in a volume.

This commit is contained in:
James Harton 2022-12-16 13:33:44 +13:00 committed by James Harton
parent 5903c5d8f4
commit 03488839fc
2 changed files with 3 additions and 1 deletions

View file

@ -47,7 +47,7 @@ RUN git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v${ASDF_VERSI
echo '\nsource $HOME/.asdf/asdf.sh' >> ~/.zshrc
WORKDIR /workspace/
RUN mkdir _build deps .elixir_ls
RUN mkdir -p _build deps .elixir_ls priv/plts
# Install all the tools specified in the tool versions file.
COPY .tool-versions /workspace/

View file

@ -10,6 +10,7 @@ volumes:
app-elixir-ls: {}
app-asdf: {}
app-storage: {}
app-plts: {}
services:
app:
@ -40,6 +41,7 @@ services:
- "app-build:/workspace/_build:rw"
- "app-elixir-ls:/workspace/.elixir_ls:rw"
- "app-storage:/storage:rw"
- "app-plts:/workspace/priv/plts:rw"
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
network_mode: service:db