phalcon docker: Repository not found.

What happened to you? half of the links are not working, the instruction is not valid, the repositories are deleted.

your official docs on main site : https://phalconphp.com/en/download/docker

composer create-project sergeyklay/phalcon-compose --prefer-dist /home/website Failed to download sergeyklay/phalcon-compose from dist: The "https://api.github.com/repos/phalcon/phalcon-compose/zipball/773c9fc4d23a96d1320d30f7741e137f9d3004d7" file could not be downloaded (HTTP/1.1 404 Not Found)



1.1k

I created example for you https://github.com/izica/docker-phalconphp

I advise you to use https://dockstation.io/ for managing local docker projects



1.1k

thanks, my solution :

FROM debian:9.8

RUN apt-get update

RUN apt-get install -y \ apt-transport-https \ lsb-release \ ca-certificates \ wget \ curl \ nano \ dialog \ net-tools \ openssl \ joe \ mc \ git

RUN apt-get install -y nginx

RUN wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg RUN sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' RUN apt-get update && apt-get install -y \ php7.3 \ php7.3-cli \ php7.3-fpm \ php7.3-curl \ php7.3-mbstring \ php7.3-gettext \ php7.3-gd \ php7.3-fileinfo \ php7.3-json \ php7.3-memcached \ php7.3-redis \ php7.3-intl \ php7.3-xml \ php7.3-zip \ php7.3-pgsql

RUN curl -s "https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh" | bash RUN apt-get install -y php7.3-phalcon

RUN /etc/init.d/php7.3-fpm start RUN /etc/init.d/nginx start

RUN curl -sS https://getcomposer.org/installer | \ php -- --install-dir=/usr/bin/ --filename=composer

RUN curl -LO https://github.com/phalcon/phalcon-devtools/archive/v3.4.1.tar.gz && \ tar xzf v3.4.1.tar.gz && \ rm -rf v3.4.1.tar.gz && \ mv phalcon-devtools-3.4.1 /usr/src/phalcon-devtools && \ ln -sf /usr/src/phalcon-devtools/phalcon.php /usr/local/bin/phalcon

RUN apt-get update && apt-get install -y supervisor RUN mkdir -p /var/log/supervisor COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf RUN /etc/init.d/supervisor start

WORKDIR /application

RUN echo "exit 0" > /usr/sbin/policy-rc.d CMD /etc/init.d/php7.3-fpm restart && /etc/init.d/supervisor start && nginx -g "daemon off;"

EXPOSE 80