factura_ktux

creacion del pdf del talonario de facturas de ktux

depende de la libreria fpdf “setasign/fpdf”: “1.7” -instalar composer -correr composer install

version php

PHP 7.2.34-43+ubuntu22.04.1+deb.sury.org+1

correr server local

php -S localhost:8080 FACTURA.php

levantar docker-compose.yml

docker-compose up -d

——– [nuevo formato de imagen con .yml] ———-

docker run -d –name nginx -p 8080:80 nginx:latest

docker pull webimp/php-72-apache:latest

docker build
-f php-7-4-apache.Dockerfile
–target php-7-4-build
–build-arg APP_ENV=local
–build-arg NPM_VERSION=7.24.2
–no-cache
-t php-7-4-web-server:latest
.

docker build –no-cache -t webimp/php-72-apache:latest .

--network bridge \

rebuild

sudo docker-compose up –build -d

conect to container

sudo docker exec -it php-7-4-web-server /bin/bash

composer dump-autoload

pase de archivos

> docker cp FACTURA.php factura_ktux-webserver-1:/var/www/html/index.php

RUNNING OK

01-12-2025

1 - docker build -t factura .

2 - docker run -d –name factura -v $(pwd):/var/www/html -p 8084:8084 factura:latest

3 - http://localhost:8084