dockerfile: remove cpanm (+workdir) & build-essentials to save space
This commit is contained in:
parent
386d56a20e
commit
45410607d3
1 changed files with 11 additions and 6 deletions
17
Dockerfile
17
Dockerfile
|
@ -1,13 +1,14 @@
|
||||||
FROM debian:stretch
|
FROM debian:stretch
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
ARG DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install --no-install-recommends -y \
|
||||||
cpanminus \
|
cpanminus \
|
||||||
build-essential \
|
build-essential \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
git \
|
git \
|
||||||
ssmtp
|
ssmtp \
|
||||||
|
&& cpanm -in \
|
||||||
RUN cpanm -in \
|
|
||||||
Cache::File \
|
Cache::File \
|
||||||
Crypt::Eksblowfish \
|
Crypt::Eksblowfish \
|
||||||
DateTime \
|
DateTime \
|
||||||
|
@ -21,10 +22,14 @@ RUN cpanm -in \
|
||||||
Mojolicious::Plugin::Authentication \
|
Mojolicious::Plugin::Authentication \
|
||||||
Travel::Status::DE::IRIS \
|
Travel::Status::DE::IRIS \
|
||||||
UUID::Tiny \
|
UUID::Tiny \
|
||||||
JSON
|
JSON \
|
||||||
|
&& rm -rf ~/.cpanm \
|
||||||
|
&& apt-get purge -y \
|
||||||
|
build-essential \
|
||||||
|
cpanminus \
|
||||||
|
&& apt-get autoremove -y
|
||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
|
|
||||||
CMD /app/docker-run.sh
|
CMD /app/docker-run.sh
|
Loading…
Reference in a new issue