Skip to content

Commit

Permalink
refactor(nextcloud_test_presets): Use Docker ADD to download app rele…
Browse files Browse the repository at this point in the history
…ases

Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Oct 2, 2024
1 parent 88ede25 commit e9d115d
Showing 1 changed file with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,41 @@ ENV PHP_CLI_SERVER_WORKERS=10
CMD ["php", "-S", "0.0.0.0:80"]

FROM alpine:latest@sha256:beefdbd8a1da6d2915566fde36db9db0b524eb737fc57cd1367effd16dc0d06d AS apps
RUN apk add curl


FROM apps AS cookbook
ARG COOKBOOK_URL
RUN curl -L "$COOKBOOK_URL" | tar -xz -C /
ADD $COOKBOOK_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS news
ARG NEWS_URL
RUN curl -L "$NEWS_URL" | tar -xz -C /
ADD $NEWS_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS notes
ARG NOTES_URL
RUN curl -L "$NOTES_URL" | tar -xz -C /
ADD $NOTES_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS uppush
ARG UPPUSH_URL
RUN curl -L "$UPPUSH_URL" | tar -xz -C /
ADD $UPPUSH_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS spreed
ARG SPREED_URL
RUN curl -L "$SPREED_URL" | tar -xz -C /
ADD $SPREED_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS tables
ARG TABLES_URL
RUN curl -L "$TABLES_URL" | tar -xz -C /
ADD $TABLES_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM apps AS drop_account
ARG DROP_ACCOUNT_URL
RUN curl -L "$DROP_ACCOUNT_URL" | tar -xz -C /
ADD $DROP_ACCOUNT_URL /tmp/app.tar.gz
RUN tar -xzf /tmp/app.tar.gz -C /

FROM nextcloud

Expand Down

0 comments on commit e9d115d

Please sign in to comment.