From dd4837ef7b6ac9a1a4908780724b94ab02fc9c5a Mon Sep 17 00:00:00 2001 From: hina Date: Thu, 14 Mar 2019 20:45:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=81=A8=E3=82=8A=E3=81=82=E3=81=88=E3=81=9ADo?= =?UTF-8?q?ckerfile=E3=81=ABnode=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Dockerfile b/Dockerfile index 65d49a8..565fba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +FROM node:10-jessie as node + FROM php:7.1-apache ENV APACHE_DOCUMENT_ROOT /var/www/html/public @@ -15,6 +17,16 @@ RUN apt-get update \ COPY dist/bin /usr/local/bin/ COPY dist/php.d /usr/local/etc/php/php.d/ +COPY --from=node /usr/local/bin/node /usr/local/bin/ +COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules +COPY --from=node /opt/yarn-* /opt/yarn + +RUN ln -s /opt/yarn/bin/yarn /usr/local/bin/yarn \ + && ln -s ../lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm \ + && ln -s ../lib/node_modules/npm/bin/npx-cli.js /usr/local/bin/npx + + + ENTRYPOINT ["tissue-entrypoint.sh"] CMD ["apache2-foreground"]