Skip to content

Instantly share code, notes, and snippets.

@WyriHaximus
Created July 29, 2025 05:55
Show Gist options
  • Select an option

  • Save WyriHaximus/1251eee3dd6c5e12bc84ec73ecb5dfa1 to your computer and use it in GitHub Desktop.

Select an option

Save WyriHaximus/1251eee3dd6c5e12bc84ec73ecb5dfa1 to your computer and use it in GitHub Desktop.
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