diff --git a/oem_application_dockerfile b/oem_application_dockerfile index 3f04fe2..6eec4f5 100644 --- a/oem_application_dockerfile +++ b/oem_application_dockerfile @@ -19,6 +19,8 @@ USER root RUN apk --no-cache add \ unzip \ + nodejs \ + composer \ && rm -rf /var/cache/apk/* RUN mkdir /etc/service/cron \ @@ -46,8 +48,18 @@ RUN echo "#!/bin/sh" > /docker-entrypoint-init.d/01-symfony.sh \ USER nobody -RUN wget https://github.com/open-event-manager/open-event-manager/archive/refs/tags/${VERSION}.zip -O artifact.zip \ - && unzip artifact.zip \ +RUN wget https://github.com/open-event-manager/open-event-manager/archive/refs/tags/${VERSION}.tar.gz -O artifact.tar.gz \ + && tar --strip-components=1 -xvzf artifact.tar.gz + +RUN composer install \ + --optimize-autoloader \ + --no-interaction \ + --no-progress + +RUN npm install \ + && npm run build + +RUN rm -r node_modules \ && rm artifact.zip \ && rm -r var/cache