Git Product home page Git Product logo

Comments (2)

laferte-tech avatar laferte-tech commented on July 29, 2024 1

Hi,
thank you so much for your answer and for your detailed explanation. It's really useful and i will try now to understand all of this and run the code step by step :)
Thanks a lot for your time and for sharing your knowledge.

from symfony-docker.

maxhelias avatar maxhelias commented on July 29, 2024

Hello, thanks for your word 😃

For how entrypoint works, i recommend you to look at the definition and example here : https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact

And next :

  1. We install Flex as a global dependency like this every command composer in the container even outside the project benefits of the parallale downloader.
  2. The skeleton at this level allows you to initialize a new project with the latest stable version if you have not started or will be overwritten by the COPY, to cache it in the docker layers and to use it to initialize the volume inside the container. (the last two can be useful for publishing the image and manage it with a orchestrator in production)
  3. For this point, I'm not sure (I haven't studied the problem more closely at the begining), but I think with docker-compose in dev mode the volume is reset with you host (docker-compose line 18) at the first mounting, so if you don't started a project we create the skeleton dynamically to prevent errors with ACLs with var folder. (because your host don't have any symfony project yet)

The main link between stage 2 & 3 is for the project to work as well as in development or for production.

Note: By writing these lines, I realize that it would be useful to have the composer install after the COPY in the dockerfile to use the docker cache as much as possible for production 🤔

from symfony-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.