私はAWS elastic beanstalkのユーザーですが、少し問題があります。私は+ノードでCSSファイルを構築したい。しかし、私はドンカーファイルにノードをインストールする方法を知りません。ノードをDockerfileにインストールしますか?
私のドッカーで使用しているインストールパッケージはこちらです。私は何か提案があればうれしい。
FROM php:5.6-apache
# Install PHP5 and modules along with composer binary
RUN apt-get update
RUN apt-get -y install \
curl \
default-jdk \
git \
libcurl4-openssl-dev \
libpq-dev \
libmcrypt-dev \
libpq5 \
npm \
node \
zlib1g-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
RUN docker-php-ext-install curl json mbstring opcache pdo_mysql zip gd exif sockets mcrypt
# Install pecl
RUN pecl install -o -f memcache-beta \
&& rm -rf /tmp/pear \
&& echo 'extension=memcache.so' > /usr/local/etc/php/conf.d/memcache.ini
この後、私はコード
#!/usr/bin/env sh
composer run-script post-install-cmd --no-interaction
chmod 0777 -R /var/app/app/cache
chmod 0777 -R /var/app/app/logs
exec apache2-foreground
と私のentrypoint.shをruningています。しかし、その後I`veは、このエラーに
Error Output: [2016-04-04 11:23:44] assetic.ERROR: The template ":tmp:module.html.twig" contains an error: A template that extends another one cannot have a body in ":tmp:module.ht
ml.twig" at line 7.
を得た。しかし、私はドッカーコンテナノード内にこれをインストールすると、方法
apt-get install git-core curl build-essential openssl libssl-dev
git clone https://github.com/nodejs/node.git
cd node
./configure
make
sudo make install
node -v
I ca私のCSSを構築する。だから質問は..私がDockerfileの中にJenkinsと一緒にビルドしたときにインストールするのはどうですか?
ありがとうございました。私は愚かな..これを実現しませんでした。うまくいった:) – Delirium