Comments (6)
Anyway, this issue is not being followed up by its author. I therefore close the subject
from symfony-docker.
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.
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.
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.
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 :
PEBCAK has a hard skin π
from symfony-docker.
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)
- Access app with my local network ip HOT 4
- Using custom TLS certificates does not work HOT 2
- Could not connect to /var/run/php/php-fpm.sock at build time HOT 8
- Installing on existing projects without local php / composer HOT 2
- Problem with "docker-entrypoint" under Windows HOT 11
- Service 'php' failed to build : Build failed HOT 1
- How to run multiple projects HOT 4
- Run as a different user HOT 7
- cdn.jsdelivr.net importmap:install ERROR Curl HOT 4
- invalid interpolation format for services.php.environment.TRUSTED_HOSTS HOT 1
- Too stupid for recipes HOT 4
- Is mecure required for production? HOT 1
- Unable to connect to external database HOT 1
- Could this repo be converted to a symfony recipe? HOT 1
- Unable to boot app in production mode HOT 2
- Large number of entities cause ORM mapping to break HOT 5
- .env.prod.local not picked up on docker compose up HOT 4
- Unable to deploy in production HOT 3
- invalid interpolation format for services.php.environment.TRUSTED_HOSTS HOT 1
- Informations about my github ci file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from symfony-docker.