From 32191a1769e24b77c1641706f16126685e6771cb Mon Sep 17 00:00:00 2001 From: Arndt Touby Date: Sat, 18 Jan 2025 23:22:04 +0100 Subject: [PATCH] Aktualisiere Dockerfile zur Installation von Node.js und verbessere den Build-Kontext in compose.yml --- Dockerfile | 8 +++++++- compose.yml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8305b8e..cdeeb40 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,15 @@ RUN apt-get update -y && apt-get install -y build-essential \ git \ locales \ curl \ - inotify-tools \ + inotify-tools + +RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - + +RUN apt-get update -y && apt-get install -y nodejs \ && apt-get clean && rm -f /var/lib/apt/lists/*_* +RUN npm install -g npm@latest + # prepare build dir WORKDIR /app #################################################################################################### diff --git a/compose.yml b/compose.yml index c5f7af0..d506f8e 100644 --- a/compose.yml +++ b/compose.yml @@ -17,7 +17,7 @@ services: tty: true stdin_open: true build: - context: . + context: https://github.com/arndttouby/elixir-phoenix-devcontainer.git dockerfile: Dockerfile target: development