parent
3901cdbf2a
commit
79519aaa07
|
@ -5,13 +5,13 @@ RUN composer --no-ansi install --no-dev --ignore-platform-reqs
|
|||
RUN composer --no-ansi dump-autoload --optimize
|
||||
|
||||
# Generate .mo files
|
||||
FROM alpine as translation
|
||||
FROM alpine AS translation
|
||||
RUN apk add gettext
|
||||
COPY resources/lang/ /data
|
||||
RUN find /data -type f -name '*.po' -exec sh -c 'file="{}"; msgfmt "${file%.*}.po" -o "${file%.*}.mo"' \;
|
||||
|
||||
# Build the themes
|
||||
FROM node:14-alpine as themes
|
||||
FROM node:20-alpine AS themes
|
||||
WORKDIR /app
|
||||
COPY .babelrc .browserslistrc package.json webpack.config.js yarn.lock /app/
|
||||
RUN yarn --frozen-lockfile
|
||||
|
@ -19,7 +19,7 @@ COPY resources/assets/ /app/resources/assets
|
|||
RUN yarn build
|
||||
|
||||
# Generate application structure
|
||||
FROM alpine as data
|
||||
FROM alpine AS data
|
||||
COPY .babelrc .browserslistrc composer.json LICENSE package.json README.md webpack.config.js yarn.lock /app/
|
||||
COPY bin/ /app/bin
|
||||
COPY config/ /app/config
|
||||
|
|
Loading…
Reference in New Issue