applicant-site/Dockerfile

25 lines
437 B
Docker
Raw Permalink Normal View History

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:19:38 +03:00
RUN composer dump-autoload --no-dev --optimize
2024-02-16 15:20:54 +03:00
RUN npm run prod
CMD ["bash", "-c", "make db-prepare start-app"]
EXPOSE ${PORT}