mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-01 04:49:36 +00:00
Improve stub translations file creation using heredoc
Co-authored-by: jbtronics <5410681+jbtronics@users.noreply.github.com>
This commit is contained in:
parent
4b77a07b1a
commit
ac4e3a556f
2 changed files with 10 additions and 6 deletions
|
|
@ -36,9 +36,11 @@ COPY webpack.config.js ./
|
|||
RUN composer dump-autoload
|
||||
|
||||
# Create stub translations file for webpack build (real translations will be generated in final image)
|
||||
RUN mkdir -p var/translations && \
|
||||
echo 'export const messages = {};' > var/translations/index.js && \
|
||||
echo 'export const localeFallbacks = {};' >> var/translations/index.js
|
||||
RUN mkdir -p var/translations
|
||||
COPY <<EOF var/translations/index.js
|
||||
export const messages = {};
|
||||
export const localeFallbacks = {};
|
||||
EOF
|
||||
|
||||
# Copy package files and install node dependencies
|
||||
COPY package.json yarn.lock ./
|
||||
|
|
|
|||
|
|
@ -34,9 +34,11 @@ COPY webpack.config.js ./
|
|||
RUN composer dump-autoload
|
||||
|
||||
# Create stub translations file for webpack build (real translations will be generated in final image)
|
||||
RUN mkdir -p var/translations && \
|
||||
echo 'export const messages = {};' > var/translations/index.js && \
|
||||
echo 'export const localeFallbacks = {};' >> var/translations/index.js
|
||||
RUN mkdir -p var/translations
|
||||
COPY <<EOF var/translations/index.js
|
||||
export const messages = {};
|
||||
export const localeFallbacks = {};
|
||||
EOF
|
||||
|
||||
# Copy package files and install node dependencies
|
||||
COPY package.json yarn.lock ./
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue