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: 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

View File

@ -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 ./

View File

@ -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 "$@"