diff --git a/docker/Dockerfile b/docker/Dockerfile index d8baa77d..097fa96e 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -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