Update node to v20 (#1075)

* uppercase keywords
* update node to v20
This commit is contained in:
Thomas Rupprecht 2023-04-21 15:10:26 +02:00 committed by GitHub
parent 3901cdbf2a
commit 79519aaa07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

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