feat: Add basic structure for live environment

This commit is contained in:
rodia
2025-09-04 12:21:44 -03:00
parent 3cab88fae2
commit 9d480c0dbc
4 changed files with 114 additions and 0 deletions

18
Dockerfile_Live Normal file
View File

@@ -0,0 +1,18 @@
# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile
FROM node as builder-node
ARG TRYTOND_VERSION
ENV SERIES=${TRYTOND_VERSION}
RUN npm install -g bower
RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf - -C /
RUN cd /package && bower install --allow-root
FROM python:3.11-bullseye
# trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore`
RUN apt-get update && apt-get install -y postgresql-client
# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile
COPY --from=builder-node /package /var/lib/trytond/www