mirror of
https://github.com/ledgersmb/ledgersmb-docker.git
synced 2025-04-19 14:47:12 -04:00
* Reorganize commands for slimmer image
This commit is contained in:
parent
09cf2e16b7
commit
42e6eb783e
27
Dockerfile
27
Dockerfile
@ -2,10 +2,10 @@ FROM debian:jessie
|
|||||||
MAINTAINER Freelock john@freelock.com
|
MAINTAINER Freelock john@freelock.com
|
||||||
|
|
||||||
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
RUN echo -n "APT::Install-Recommends \"0\";\nAPT::Install-Suggests \"0\";\n" >> /etc/apt/apt.conf
|
||||||
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
# Install Perl, Tex, Starman, psql client, and all dependencies
|
# Install Perl, Tex, Starman, psql client, and all dependencies
|
||||||
RUN DEBIAN_FRONTENT=noninteractive && \
|
RUN apt-get update && apt-get dist-upgrade -y && apt-get -y install \
|
||||||
apt-get update && apt-get dist-upgrade -y && apt-get -y install \
|
|
||||||
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
libcgi-emulate-psgi-perl libcgi-simple-perl libconfig-inifiles-perl \
|
||||||
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
libdbd-pg-perl libdbi-perl libdatetime-perl \
|
||||||
libdatetime-format-strptime-perl libdigest-md5-perl \
|
libdatetime-format-strptime-perl libdigest-md5-perl \
|
||||||
@ -24,24 +24,31 @@ RUN DEBIAN_FRONTENT=noninteractive && \
|
|||||||
libopenoffice-oodoc-perl \
|
libopenoffice-oodoc-perl \
|
||||||
postgresql-client \
|
postgresql-client \
|
||||||
ssmtp \
|
ssmtp \
|
||||||
git cpanminus make gcc libperl-dev lsb-release
|
lsb-release
|
||||||
|
|
||||||
|
|
||||||
# Build time variables
|
# Build time variables
|
||||||
ENV LSMB_VERSION 1.5.7
|
ENV LSMB_VERSION 1.5.7
|
||||||
|
|
||||||
# Install LedgerSMB
|
# Install LedgerSMB
|
||||||
RUN cd /srv && \
|
RUN apt-get -y install git cpanminus make gcc libperl-dev && \
|
||||||
|
cd /srv && \
|
||||||
curl -Lo ledgersmb-$LSMB_VERSION.tar.gz "https://github.com/ledgersmb/LedgerSMB/releases/download/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz" && \
|
curl -Lo ledgersmb-$LSMB_VERSION.tar.gz "https://github.com/ledgersmb/LedgerSMB/releases/download/$LSMB_VERSION/ledgersmb-$LSMB_VERSION.tar.gz" && \
|
||||||
tar -xvzf ledgersmb-$LSMB_VERSION.tar.gz
|
tar -xvzf ledgersmb-$LSMB_VERSION.tar.gz && \
|
||||||
|
cd ledgersmb && \
|
||||||
|
cpanm --quiet --notest \
|
||||||
|
--with-feature=starman \
|
||||||
|
--with-feature=latex-pdf-ps \
|
||||||
|
--with-feature=openoffice \
|
||||||
|
--installdeps . && \
|
||||||
|
apt-get purge -y git cpanminus make gcc libperl-dev && \
|
||||||
|
apt-get autoremove -y && \
|
||||||
|
apt-get autoclean
|
||||||
|
|
||||||
|
|
||||||
WORKDIR /srv/ledgersmb
|
WORKDIR /srv/ledgersmb
|
||||||
|
|
||||||
# master requirements
|
# master requirements
|
||||||
RUN cpanm --quiet --notest \
|
|
||||||
--with-feature=starman \
|
|
||||||
--with-feature=latex-pdf-ps \
|
|
||||||
--with-feature=openoffice \
|
|
||||||
--installdeps .
|
|
||||||
|
|
||||||
# Configure outgoing mail to use host, other run time variable defaults
|
# Configure outgoing mail to use host, other run time variable defaults
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user