G
G
grabbee2021-09-20 03:05:59
symfony
grabbee, 2021-09-20 03:05:59

How to properly deploy a Symfony application using docker?

Previously, I used deployer - everything was deployed automatically with one command. Now I understand with docker. Is there something similar there? As I understand it, now you need to pack the code into an image every time and manually run this image on the server. It doesn't seem convenient...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Barmunk, 2021-09-20
@Barmunk

If you really need to pack the code into an image, then pack it there and deployer

....
RUN curl -LO https://deployer.org/deployer.phar && \
         mv deployer.phar /usr/local/bin/dep && \
         chmod +x /usr/local/bin/dep

....
RUN dep test

the code can also be moved to volume and each time it will not be necessary to update the image =)

S
Sanes, 2021-09-20
@Sanes

Git not working?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question