File tree Expand file tree Collapse file tree 4 files changed +5684
-1
lines changed Expand file tree Collapse file tree 4 files changed +5684
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ RUN apt update && apt install -y \
7
7
unzip \
8
8
curl \
9
9
git \
10
+ nodejs \
11
+ npm \
12
+ && npm install --global yarn \
10
13
&& git config --global user.email "you@example.com" && git config --global user.name "Your Name" \
11
14
&& docker-php-ext-configure intl \
12
15
&& docker-php-ext-install intl \
@@ -34,7 +37,8 @@ RUN chmod -R 777 /usr/src/app/public/uploads
34
37
RUN chmod -R 777 /usr/src/app/ai_content
35
38
RUN chmod -R 777 /usr/src/app/var
36
39
RUN cd /usr/src/app && composer install
37
-
40
+ RUN cd /usr/src/app && npm install --global yarn
41
+ RUN cd /usr/src/app && yarn install && yarn encore production
38
42
39
43
ENTRYPOINT ["docker-entrypoint.sh" ]
40
44
CMD ["apache2-foreground" ]
Original file line number Diff line number Diff line change 11
11
Symfony \Bundle \SecurityBundle \SecurityBundle::class => ['all ' => true ],
12
12
Symfony \Bundle \MonologBundle \MonologBundle::class => ['all ' => true ],
13
13
Symfony \Bundle \MakerBundle \MakerBundle::class => ['dev ' => true ],
14
+ Symfony \WebpackEncoreBundle \WebpackEncoreBundle::class => ['all ' => true ],
15
+ Symfony \UX \StimulusBundle \StimulusBundle::class => ['all ' => true ],
16
+ Symfony \UX \Vue \VueBundle::class => ['all ' => true ],
14
17
];
Original file line number Diff line number Diff line change
1
+ webpack_encore :
2
+ # The path where Encore is building the assets - i.e. Encore.setOutputPath()
3
+ output_path : ' %kernel.project_dir%/public/build'
4
+ # If multiple builds are defined (as shown below), you can disable the default build:
5
+ # output_path: false
6
+
7
+ # Set attributes that will be rendered on all script and link tags
8
+ script_attributes :
9
+ defer : true
10
+ # Uncomment (also under link_attributes) if using Turbo Drive
11
+ # https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
12
+ # 'data-turbo-track': reload
13
+ # link_attributes:
14
+ # Uncomment if using Turbo Drive
15
+ # 'data-turbo-track': reload
16
+
17
+ # If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
18
+ # crossorigin: 'anonymous'
19
+
20
+ # Preload all rendered script and link tags automatically via the HTTP/2 Link header
21
+ # preload: true
22
+
23
+ # Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
24
+ # strict_mode: false
25
+
26
+ # If you have multiple builds:
27
+ # builds:
28
+ # frontend: '%kernel.project_dir%/public/frontend/build'
29
+
30
+ # pass the build name as the 3rd argument to the Twig functions
31
+ # {{ encore_entry_script_tags('entry1', null, 'frontend') }}
32
+
33
+ framework :
34
+ assets :
35
+ json_manifest_path : ' %kernel.project_dir%/public/build/manifest.json'
36
+
37
+ # when@prod:
38
+ # webpack_encore:
39
+ # # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
40
+ # # Available in version 1.2
41
+ # cache: true
42
+
43
+ # when@test:
44
+ # webpack_encore:
45
+ # strict_mode: false
You can’t perform that action at this time.
0 commit comments