GithubHelp home page GithubHelp logo

Comments (6)

maxhelias avatar maxhelias commented on June 2, 2024 1

Anyway, this issue is not being followed up by its author. I therefore close the subject

from symfony-docker.

maxhelias avatar maxhelias commented on June 2, 2024 1

In fact, build is for creating container and up for running it. Use the same starter but with the build.

docker compose -f compose.yaml -f compose.prod.yaml build --no-cache

Note: Don't forget the env variables before the command in both cases

from symfony-docker.

maxhelias avatar maxhelias commented on June 2, 2024

It's difficult to help you with so little information. You'll have to dig a little deeper to give us the details of what's going on.

from symfony-docker.

Aweptimum avatar Aweptimum commented on June 2, 2024

I ran into the same issue. It seemed like my source wasn't being copied over to the production container volume, because I was only finding the symfony/skeleton inside.

However, this is the command I was using to build the production image:

docker compose -f compose.yaml -f compose.prod.yaml up

I had removed the skeleton sections from compose.yml and the entrypoint, but I forgot that the entrypoint is part of the image. So what worked was to tell docker to rebuild the image by passing --build (and a --force-recreate to be sure)

docker compose -f compose.yaml -f compose.prod.yaml up --build --force-recreate

I found the modified entrypoint, my project, and all my real dependencies had made it.

I believe this is why this other person was missing Twig from their project #479 (comment) (they have a fresh skeleton composer.json), and the source of the trouble in #521

Hopefully this solves the issue, but it's kinda just PEBCAK

from symfony-docker.

maxhelias avatar maxhelias commented on June 2, 2024

@Aweptimum

However, this is the command I was using to build the production image:

docker compose -f compose.yaml -f compose.prod.yaml up

Unfortunately this is not the docker build command.. That why we add a caution in the doc :

Capture d’écran 2024-03-15 aΜ€ 16 21 00

PEBCAK has a hard skin πŸ˜…

from symfony-docker.

Aweptimum avatar Aweptimum commented on June 2, 2024

Right, docker build --no-cache is what should actually be done
But it's strange that the docker compose -build command seemed to work πŸ€”

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.