Actualización de la configuración de Docker

This commit is contained in:
Juan Felipe Zapata Moreno 2025-12-30 14:00:59 -06:00
parent c44fc36fd5
commit f8cc26a497
3 changed files with 11 additions and 9 deletions

View File

@ -1,16 +1,16 @@
services:
holos-frontend:
pdv-frontend:
build:
context: .
dockerfile: dockerfile
ports:
- "${APP_PORT}:5173"
volumes:
- .:/var/www/holos.frontend
- /var/www/holos.frontend/node_modules
- .:/var/www/pdv.frontend
- /var/www/pdv.frontend/node_modules
networks:
- holos-network
- pdv-network
networks:
holos-network:
pdv-network:
driver: bridge

View File

@ -1,6 +1,8 @@
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 ./

View File

@ -1,11 +1,11 @@
#! /bin/bash
#!/bin/sh
if [ ! -f .env ]; then
cp .env.example .env
fi
if [ ! -f colors.json ]; then
cp colors.json.example colors.json
if [ ! -f colors.css ]; then
cp colors.css.example colors.css
fi
exec "$@"