Actualización de la configuración de Docker
This commit is contained in:
parent
c44fc36fd5
commit
f8cc26a497
@ -1,16 +1,16 @@
|
|||||||
services:
|
services:
|
||||||
holos-frontend:
|
pdv-frontend:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: dockerfile
|
dockerfile: dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT}:5173"
|
- "${APP_PORT}:5173"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/var/www/holos.frontend
|
- .:/var/www/pdv.frontend
|
||||||
- /var/www/holos.frontend/node_modules
|
- /var/www/pdv.frontend/node_modules
|
||||||
networks:
|
networks:
|
||||||
- holos-network
|
- pdv-network
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
holos-network:
|
pdv-network:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
@ -1,6 +1,8 @@
|
|||||||
FROM node:22-alpine AS build
|
FROM node:22-alpine AS build
|
||||||
|
|
||||||
WORKDIR /var/www/holos.frontend
|
RUN apk add --no-cache bash
|
||||||
|
|
||||||
|
WORKDIR /var/www/pdv.frontend
|
||||||
|
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
|
|||||||
@ -1,11 +1,11 @@
|
|||||||
#! /bin/bash
|
#!/bin/sh
|
||||||
|
|
||||||
if [ ! -f .env ]; then
|
if [ ! -f .env ]; then
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -f colors.json ]; then
|
if [ ! -f colors.css ]; then
|
||||||
cp colors.json.example colors.json
|
cp colors.css.example colors.css
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user