mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Use debian base container and clean up apt-get (#3011)
* Use debian base container and clean up apt-get Attempt to slim down the docker image by replacing ubuntu:trusty with debian:jessie and clean up after apt-get invocation. Building against the 3.6.0 commit shows a healthy reduction of 44MB, or 9%, compared to the ubuntu-based image. * Use debian:jessie-slim for an even smaller image If we're using a debian base image for sizing reasons, we may as well go the full distance and use debian-slim.
This commit is contained in:
parent
9fd3a9a82d
commit
1f3106b9da
|
@ -1,4 +1,4 @@
|
|||
FROM ubuntu:trusty
|
||||
FROM debian:jessie-slim
|
||||
MAINTAINER Brady Wetherington <uberbrady@gmail.com>
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
|
@ -13,7 +13,9 @@ patch \
|
|||
curl \
|
||||
vim \
|
||||
git \
|
||||
mysql-client
|
||||
mysql-client \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN php5enmod mcrypt
|
||||
RUN php5enmod gd
|
||||
|
|
Loading…
Reference in a new issue