Help us understand the problem. What is going on with this article?

EC-CUBE4 を CentOS7 ベースの Docker で動かす

More than 1 year has passed since last update.

Dockerfile

FROM centos:centos7
RUN yum update -y
RUN yum install -y epel-release
RUN yum install -y http://rpms.remirepo.net/enterprise/remi-release-7.rpm
RUN yum install -y php72
RUN yum install -y php72-php
RUN yum install -y php72-php-pecl-zip
RUN yum install -y php72-php-mbstring
RUN yum install -y php72-php-xml
RUN yum install -y nodejs
RUN yum install -y autoconf
RUN yum install -y automake
RUN yum install -y libpng-devel
RUN yum install -y libpng12-devel
RUN yum install -y php72-php-pdo
RUN yum install -y php72-php-phar
RUN yum install -y php72-php-mbstring
RUN yum install -y php72-php-zlib
RUN yum install -y php72-php-ctype
RUN yum install -y php72-php-session
RUN yum install -y php72-php-json
RUN yum install -y php72-php-xml
RUN yum install -y php72-php-libxml
RUN yum install -y php72-php-openssl
RUN yum install -y php72-php-zip
RUN yum install -y php72-php-curl
RUN yum install -y php72-php-fileinfo
RUN yum install -y php72-php-intl

RUN yum install -y php72-php-cli
RUN yum install -y git

RUN cd /usr/bin/; ln -s php72 php
RUN mkdir /var/www/html/ec4
WORKDIR /var/www/html/ec4
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
RUN php composer.phar create-project ec-cube/ec-cube ec-cube "4.0.x-dev" --keep-vcs

RUN yum install -y net-tools

WORKDIR /var/www/html/ec4/ec-cube
EXPOSE 8000

CMD bin/console server:run 0.0.0.0:8000

Build & Run

docker build -f Dockerfile -t eccube4cent .
docker run -d -p 8080:8000 --name eccube4cent eccube4cent
curl http://127.0.0.1:8080/
Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away