forked from eatvio/eatvio-infra
update options docker npm service
This commit is contained in:
@@ -75,27 +75,11 @@ services:
|
||||
mailhog:
|
||||
image: 'mailhog/mailhog'
|
||||
ports:
|
||||
- '8082:8025'
|
||||
- '8082:8025'
|
||||
networks:
|
||||
ns-eatvio:
|
||||
ipv4_address: 172.118.0.4
|
||||
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./phpdocker/node
|
||||
dockerfile: Dockerfile.dev
|
||||
networks:
|
||||
ns-eatvio:
|
||||
ipv4_address: 172.118.0.6
|
||||
volumes:
|
||||
- ./app:/application
|
||||
command: ["npm", "run", "watch"]
|
||||
working_dir: /application
|
||||
# labels:
|
||||
# - "traefik.enable=false"
|
||||
restart: always
|
||||
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user