2024-02-16 15:20:54 +03:00
|
|
|
# syntax = edrevo/dockerfile-plus
|
|
|
|
|
|
|
|
INCLUDE+ Dockerfile.dev
|
|
|
|
|
|
|
|
ENV PORT=80
|
|
|
|
|
|
|
|
COPY composer.json composer.lock ./
|
|
|
|
#COPY app/Helpers/helpers.php ./app/Helpers/helpers.php
|
|
|
|
|
|
|
|
RUN composer install --prefer-dist --no-scripts --no-dev --no-autoloader
|
|
|
|
|
|
|
|
COPY package.json package-lock.json ./
|
|
|
|
|
|
|
|
RUN npm install
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-02-16 16:12:50 +03:00
|
|
|
RUN composer dump-autoload --optimize
|
2024-02-16 15:20:54 +03:00
|
|
|
|
|
|
|
RUN npm run prod
|
|
|
|
|
|
|
|
CMD ["bash", "-c", "make db-prepare start-app"]
|
|
|
|
|
|
|
|
EXPOSE ${PORT}
|