Multistage build to remove unused php code in final build
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2025-02-11 15:03:55 +00:00
parent 64dff1c895
commit 41e54dc1f7
2 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,9 @@
FROM composer
WORKDIR /src
COPY . /src
RUN ls
RUN composer update --no-dev
FROM php:8.4-cli-alpine
COPY . /app
WORKDIR /app
COPY --from=0 ./src /app
WORKDIR /app
ENTRYPOINT ["./backup"]