From 2bd757bfddf98a20cc1c8aa9cfcb516232a17473 Mon Sep 17 00:00:00 2001 From: kucaahbe <93769+kucaahbe@users.noreply.github.com> Date: Sun, 18 Feb 2024 19:29:00 +0200 Subject: [PATCH] chore: refactor Dockerfile --- Dockerfile | 33 ++++++++++++++++++--------------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 12f79ec..ddae31e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,27 +1,30 @@ # syntax=docker/dockerfile:1 FROM dlang2/dmd-ubuntu -WORKDIR /app -COPY . . -RUN --mount=type=cache,target=/root/.dub dub build -RUN ln -s /app/myrc /usr/local/bin/myrc +COPY . /app +RUN --mount=type=cache,target=/root/.dub < $example_dir_2/wrong_location1 +EOF USER dlang - -WORKDIR $example_dir_1 -COPY test . - -WORKDIR $example_dir_2 -RUN echo "echo wrong location 1" > wrong_location1 - WORKDIR /home/dlang -RUN ln -s $example_dir_1/zshrc ~/.zshrc -RUN ln -s ./dotfiles/example1/ls_colors ~/.ls_colors -RUN ln -s $example_dir_2/wrong_location1 ~/.zshenv -WORKDIR $example_dir_1 +RUN <