mirror of
https://github.com/ggogel/seafile-containerized.git
synced 2024-11-16 09:01:38 +00:00
Improved base image.
This commit is contained in:
parent
49e15df129
commit
aa80598144
|
@ -2,9 +2,11 @@
|
||||||
# See https://hub.docker.com/r/phusion/baseimage/tags/
|
# See https://hub.docker.com/r/phusion/baseimage/tags/
|
||||||
FROM phusion/baseimage:0.9.19
|
FROM phusion/baseimage:0.9.19
|
||||||
|
|
||||||
ENV UPDATED_AT=20161110 \
|
ENV UPDATED_AT=20161124 \
|
||||||
DEBIAN_FRONTEND=noninteractive
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
|
CMD ["/sbin/my_init", "--", "bash", "-l"]
|
||||||
|
|
||||||
RUN apt-get update -qq && apt-get -qq -y install memcached mariadb-server nginx
|
RUN apt-get update -qq && apt-get -qq -y install memcached mariadb-server nginx
|
||||||
|
|
||||||
# Utility tools
|
# Utility tools
|
||||||
|
@ -38,7 +40,8 @@ RUN mkdir -p /etc/service/mysql && \
|
||||||
RUN mkdir -p /etc/my_init.d && rm -f /etc/my_init.d/00_regen_ssh_host_keys.sh
|
RUN mkdir -p /etc/my_init.d && rm -f /etc/my_init.d/00_regen_ssh_host_keys.sh
|
||||||
ADD my_init.d/99_mysql_setup.sh /etc/my_init.d/
|
ADD my_init.d/99_mysql_setup.sh /etc/my_init.d/
|
||||||
|
|
||||||
# clean up for docker squash
|
# Clean up for docker squash
|
||||||
|
# See https://github.com/goldmann/docker-squash
|
||||||
RUN rm -rf \
|
RUN rm -rf \
|
||||||
/root/.cache \
|
/root/.cache \
|
||||||
/root/.npm \
|
/root/.npm \
|
||||||
|
@ -48,11 +51,7 @@ RUN rm -rf \
|
||||||
/usr/share/man \
|
/usr/share/man \
|
||||||
/usr/share/vim/vim74/doc \
|
/usr/share/vim/vim74/doc \
|
||||||
/usr/share/vim/vim74/lang \
|
/usr/share/vim/vim74/lang \
|
||||||
/usr/share/vim/vim74/spell/en*
|
/usr/share/vim/vim74/spell/en* \
|
||||||
/usr/share/vim/vim74/tutor \
|
/usr/share/vim/vim74/tutor \
|
||||||
/var/lib/apt/lists/* \
|
/var/lib/apt/lists/* \
|
||||||
/tmp/* \
|
/tmp/*
|
||||||
|
|
||||||
CMD ["/sbin/my_init", "--", "bash", "-l"]
|
|
||||||
|
|
||||||
# Docker squash
|
|
||||||
|
|
Loading…
Reference in a new issue