Files
NaliiaERP/Dockerfile_Live

35 lines
968 B
Plaintext

# 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 /
COPY naliia_sao_custom/sao.less /package/src/sao.less
RUN cd /package && bower install --allow-root
FROM debian:12-slim
# trytond DB_CACHE requiere commandos `pg_dump` y `pg_restore`
RUN apt-get update && \
apt-get install -y postgresql-client python3-pip curl && \
rm -rf /var/lib/apt/lists/*
# 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 \