mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 22:57:13 -04:00
* Minimize the size of the image (went from 2.6GB to 1.4GB!)
This commit is contained in:
parent
e5c6072505
commit
1148c219ec
24
Dockerfile
24
Dockerfile
@ -1,9 +1,7 @@
|
|||||||
FROM perl:5
|
FROM perl:5
|
||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
# Use postgres repository to get newer pg_dump and postgres client
|
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
||||||
RUN wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
|
|
||||||
echo "deb http://apt.postgresql.org/pub/repos/apt/ jessie-pgdg main 9.6" |tee /etc/apt/sources.list.d/postgres.list
|
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
RUN DEBIAN_FRONTENT=noninteractive && \
|
RUN DEBIAN_FRONTENT=noninteractive && \
|
||||||
@ -24,9 +22,14 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
texlive-xetex \
|
texlive-xetex \
|
||||||
starman \
|
starman \
|
||||||
libopenoffice-oodoc-perl \
|
libopenoffice-oodoc-perl \
|
||||||
postgresql-client-9.6 \
|
postgresql-client \
|
||||||
lpr \
|
ssmtp \
|
||||||
ssmtp
|
git
|
||||||
|
|
||||||
|
# Java & Nodejs for doing Dojo build
|
||||||
|
#RUN DEBIAN_FRONTENT=noninteractive && apt-get install -y openjdk-7-jre-headless
|
||||||
|
RUN apt-get install -y npm
|
||||||
|
RUN update-alternatives --install /usr/bin/node nodejs /usr/bin/nodejs 100
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.6
|
ENV LSMB_VERSION 1.5.6
|
||||||
@ -39,13 +42,20 @@ RUN cd /srv && \
|
|||||||
|
|
||||||
WORKDIR /srv/ledgersmb
|
WORKDIR /srv/ledgersmb
|
||||||
|
|
||||||
# 1.5 requirements
|
# master requirements
|
||||||
RUN cpanm --quiet --notest \
|
RUN cpanm --quiet --notest \
|
||||||
--with-feature=starman \
|
--with-feature=starman \
|
||||||
--with-feature=latex-pdf-ps \
|
--with-feature=latex-pdf-ps \
|
||||||
--with-feature=openoffice \
|
--with-feature=openoffice \
|
||||||
--installdeps .
|
--installdeps .
|
||||||
|
|
||||||
|
# Uglify needs to be installed right before 'make dojo'?!
|
||||||
|
RUN npm install -g uglify-js@">=2.0 <3.0"
|
||||||
|
ENV NODE_PATH /usr/local/lib/node_modules
|
||||||
|
|
||||||
|
# Build dojo
|
||||||
|
RUN make dojo
|
||||||
|
|
||||||
# Configure outgoing mail to use host, other run time variable defaults
|
# Configure outgoing mail to use host, other run time variable defaults
|
||||||
|
|
||||||
## sSMTP
|
## sSMTP
|
||||||
|
Loading…
Reference in New Issue
Block a user