-
-
Save WyriHaximus/1251eee3dd6c5e12bc84ec73ecb5dfa1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ghcr.io/wyrihaximusnet/php:8.4-nts-alpine-slim-dev AS install-dependencies | |
| WORKDIR /opt/app | |
| COPY ./composer.* /opt/app/ | |
| COPY ./etc/ /opt/app/etc/ | |
| COPY ./src/ /opt/app/src/ | |
| RUN composer install --ansi --no-interaction --prefer-dist --no-progress -o --no-cache --no-scripts --no-dev | |
| FROM ghcr.io/wyrihaximusnet/php:8.4-nts-alpine-slim AS runtime | |
| WORKDIR /opt/app | |
| COPY --from=install-dependencies /opt/app/ /opt/app/ | |
| ENTRYPOINT ["php", "/opt/app/bin/app"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment