とりあえずDockerfileにnodeを追加
This commit is contained in:
parent
2dd5cbd072
commit
dd4837ef7b
12
Dockerfile
12
Dockerfile
@ -1,3 +1,5 @@
|
|||||||
|
FROM node:10-jessie as node
|
||||||
|
|
||||||
FROM php:7.1-apache
|
FROM php:7.1-apache
|
||||||
|
|
||||||
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
ENV APACHE_DOCUMENT_ROOT /var/www/html/public
|
||||||
@ -15,6 +17,16 @@ RUN apt-get update \
|
|||||||
COPY dist/bin /usr/local/bin/
|
COPY dist/bin /usr/local/bin/
|
||||||
COPY dist/php.d /usr/local/etc/php/php.d/
|
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"]
|
ENTRYPOINT ["tissue-entrypoint.sh"]
|
||||||
CMD ["apache2-foreground"]
|
CMD ["apache2-foreground"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user