Uniformisation avec les autres dockers ubuntu
This commit is contained in:
parent
ce83804aca
commit
1865c35c17
11
Dockerfile
11
Dockerfile
@ -1,10 +1,13 @@
|
|||||||
FROM "ubuntu:18.04"
|
FROM "ubuntu:18.04"
|
||||||
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
|
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
|
||||||
|
|
||||||
RUN apt-get -qq update && \
|
RUN export DEBIAN_FRONTEND="noninteractive" && \
|
||||||
apt-get -qq --yes install ruby ruby-dev libxml2-dev && \
|
export BUILD_PACKAGES="ruby-dev libxml2-dev" && \
|
||||||
|
export RUNTIME_PACKAGES="ruby" && \
|
||||||
|
apt-get -qq update && \
|
||||||
|
apt-get -qq --yes install ${BUILD_PACKAGES} ${RUNTIME_PACKAGES} && \
|
||||||
gem install foodcritic && \
|
gem install foodcritic && \
|
||||||
apt-get -qq --yes remove --purge libxml2-dev ruby-dev unzip zip fonts-lato javascript-common libjs-jquery && \
|
apt-get -qq --yes remove --purge ${BUILD_PACKAGES} unzip zip fonts-lato javascript-common libjs-jquery && \
|
||||||
apt-get -qq --yes autoremove --purge && \
|
apt-get -qq --yes autoremove --purge && \
|
||||||
apt-get -qq --yes clean all && \
|
apt-get -qq --yes clean all && \
|
||||||
rm -rf "/usr/share/doc/"* \
|
rm -rf "/usr/share/doc/"* \
|
||||||
@ -16,6 +19,6 @@ RUN apt-get -qq update && \
|
|||||||
"/var/www/html" \
|
"/var/www/html" \
|
||||||
"/tmp/"*
|
"/tmp/"*
|
||||||
|
|
||||||
WORKDIR /data
|
WORKDIR "/data"
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/local/bin/foodcritic" ]
|
ENTRYPOINT [ "/usr/local/bin/foodcritic" ]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user