Aktualisiere Dockerfile zur Installation von Node.js und verbessere den Build-Kontext in compose.yml

This commit is contained in:
Arndt Touby 2025-01-18 23:22:04 +01:00
parent 17c4b0dc66
commit 32191a1769
2 changed files with 8 additions and 2 deletions

View file

@ -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
####################################################################################################

View file

@ -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