forked from eatvio/eatvio-infra
Added node docker service
This commit is contained in:
25
phpdocker/node/Dockerfile.dev
Executable file
25
phpdocker/node/Dockerfile.dev
Executable file
@@ -0,0 +1,25 @@
|
||||
FROM ubuntu:22.04
|
||||
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
ENV TZ=Europe/Moscow
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
|
||||
WORKDIR /application
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
# make \
|
||||
curl \
|
||||
libpq-dev \
|
||||
libzip-dev \
|
||||
unzip \
|
||||
zip
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
software-properties-common \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||
RUN apt-get update && apt-get install -y nodejs && npm install -g npm@10.1.0
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
|
||||
@@ -3,9 +3,14 @@ WORKDIR "/application"
|
||||
|
||||
RUN apt-get update; \
|
||||
apt-get -y --no-install-recommends install \
|
||||
git \
|
||||
php8.2-gd \
|
||||
php8.2-mysql \
|
||||
git \
|
||||
php8.2-gd \
|
||||
php8.2-mysql \
|
||||
php8.2-pgsql; \
|
||||
apt-get clean; \
|
||||
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*
|
||||
|
||||
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash -
|
||||
RUN apt-get update && apt-get install -y nodejs && npm install -g npm@10.1.0
|
||||
|
||||
ENV PATH=node_modules/.bin:$PATH
|
||||
|
||||
Reference in New Issue
Block a user