A
A
Alexey Nikolaev2019-08-15 19:10:40
Phalcon
Alexey Nikolaev, 2019-08-15 19:10:40

How to deploy a Phalcon project in a docker container?

Good evening.
The question is in the subject. It is useless to follow the documentation, because. it is not up-to-date, and there are no docks for 4.0 on the framework website at all - usually this is the case with dead or dying frames with a community of one and a half people, but Falcon, it seems, is not one of those. Repositories for docker-compose are dead, composer cannot find repositories (composer create-project option). There are wild recommendations on the Internet, up to self-assembly of Falcon from source. It feels like Falcon is more dead than alive.
Now I'm trying to push bubuntu into the container and then everything is as if I were setting up the server - php, mysql, apache and so on. But I feel that I am going somewhere in the wrong direction, because usually Apache itself (without bubuntu) is enough in the docker container to make everything work.
What needs to be done to install Falcon in a docker container on Windows as simply and quickly as possible? Maybe someone made their own images?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
serginhold, 2019-08-15
@serginhold

What's wrong with installing from source?
https://github.com/SerginhoLD/blog/blob/phalcon/do...

D
Dmitry, 2019-12-19
@AaAAxzz

Dockerfile (php fpm)

FROM phpdockerio/php73-fpm:latest
WORKDIR "/application"

# Fix debconf warnings upon build
ARG DEBIAN_FRONTEND=noninteractive

# Install selected extensions and other stuff
RUN apt-get update \
    && apt-get -y --no-install-recommends install  php7.3-mysql php-xdebug php7.3-imap php7.3-intl \
    && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

# Install phalcon
RUN curl -s https://packagecloud.io/install/repositories/phalcon/stable/script.deb.sh | bash \
    && apt-get install -y php7.3-phalcon \
    && apt-get clean; rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /usr/share/doc/*

D
Dmitry Derepko, 2019-08-15
@xEpozZ

a community of one and a half people, but Falcon, it seems, is not one of those

- Are you sure?
What's the problem? Install apache + php + php-phalcon

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question