diff --git a/8.0/Dockerfile b/8.0/Dockerfile index 9a69b94..b6fe26e 100644 --- a/8.0/Dockerfile +++ b/8.0/Dockerfile @@ -15,10 +15,18 @@ RUN set -x; \ && ln -s /usr/bin/nodejs /usr/bin/node \ && curl -o wkhtmltox.deb -SL http://nightly.odoo.com/extra/wkhtmltox-0.12.1.2_linux-jessie-amd64.deb \ && echo '40e8b906de658a2221b15e4e8cd82565a47d7ee8 wkhtmltox.deb' | sha1sum -c - \ - && dpkg --force-depends -i wkhtmltox.deb \ && apt-get -y install -f --no-install-recommends \ + && dpkg --force-depends -i wkhtmltox.deb \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false npm \ && rm -rf /var/lib/apt/lists/* wkhtmltox.deb +#add ssh +RUN apt-get install -y openssh-server +RUN mkdir /var/run/sshd +RUN echo 'root:odoo' | chpasswd +RUN sed -i 's/PermitRootLogin without-password/PermitRootLogin yes/' /etc/ssh/sshd_config +RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd +EXPOSE 22 +CMD ["/usr/sbin/sshd", "-D"] # Install Odoo ENV ODOO_VERSION 8.0