Aktualisiere Dockerfile zur Installation von Node.js und verbessere den Build-Kontext in compose.yml
This commit is contained in:
parent
17c4b0dc66
commit
32191a1769
2 changed files with 8 additions and 2 deletions
|
|
@ -25,9 +25,15 @@ RUN apt-get update -y && apt-get install -y build-essential \
|
||||||
git \
|
git \
|
||||||
locales \
|
locales \
|
||||||
curl \
|
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/*_*
|
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
|
||||||
|
|
||||||
|
RUN npm install -g npm@latest
|
||||||
|
|
||||||
# prepare build dir
|
# prepare build dir
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
####################################################################################################
|
####################################################################################################
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@ services:
|
||||||
tty: true
|
tty: true
|
||||||
stdin_open: true
|
stdin_open: true
|
||||||
build:
|
build:
|
||||||
context: .
|
context: https://github.com/arndttouby/elixir-phoenix-devcontainer.git
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
target: development
|
target: development
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue