chore: update Docker and build config, fix typo, update submodules

This commit is contained in:
2026-04-06 22:15:33 -05:00
parent edad4df6e4
commit 20b1f77e9e
5 changed files with 20 additions and 4 deletions

View File

@@ -9,11 +9,24 @@ RUN curl https://downloads.tryton.org/${SERIES}/tryton-sao-last.tgz | tar zxf -
COPY naliia_sao_custom/sao.less /package/src/sao.less
RUN cd /package && bower install --allow-root
FROM python:3.11-bullseye
FROM debian:12-slim
# trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore`
RUN apt-get update && apt-get install -y postgresql-client
RUN apt-get update && apt-get install -y postgresql-client python3-pip
# TOMADO DE: https://hg.tryton.org/tryton-docker/file/tip/6.6/Dockerfile
COPY --from=builder-node /package /var/lib/trytond/www
COPY naliia_sao_custom/ /var/lib/trytond/www/
ARG TRYTONPASSFILE
ARG TRYTON_ADMIN_PASSWORD
ENV TRYTONPASSFILE=/etc/trytond_admin_pass.conf
RUN touch /etc/trytond_populate.conf \
&& touch $TRYTONPASSFILE \
&& echo $TRYTON_ADMIN_PASSWORD >> $TRYTONPASSFILE \