2023-07-05 13:52:15 -04:00
|
|
|
# PHP composer to get dependencies
|
|
|
|
FROM composer:2.5 as COMPOSER
|
|
|
|
|
|
|
|
WORKDIR /usr/src/colossus/
|
|
|
|
|
|
|
|
COPY composer.* /usr/src/colossus/
|
|
|
|
|
|
|
|
# Install dependencies
|
|
|
|
RUN composer install
|
|
|
|
RUN composer update
|
|
|
|
|
|
|
|
# Actual PHP runtime
|
|
|
|
FROM php:8.2-cli
|
|
|
|
|
|
|
|
WORKDIR /usr/src/colossus/
|
|
|
|
|
|
|
|
COPY --from=COMPOSER /usr/src/colossus/vendor/ /usr/src/colossus/vendor/
|
|
|
|
COPY . /usr/src/colossus/
|
|
|
|
|
|
|
|
VOLUME /usr/src/colossus/vendor/
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
|
|
|
# Run the app
|
2024-02-26 13:17:17 -05:00
|
|
|
CMD [ "bash", "entrypoints/dev.sh" ]
|