mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-16 08:05:49 -06:00
perf: speed up deps using buildkit cache
This commit is contained in:
parent
52cad203fa
commit
d5466f30e5
1 changed files with 3 additions and 3 deletions
|
|
@ -21,14 +21,14 @@ ADD Makefile .
|
||||||
|
|
||||||
# docs
|
# docs
|
||||||
ADD ./requirements.txt .
|
ADD ./requirements.txt .
|
||||||
RUN make docs-deps
|
RUN --mount=type=cache,target=/root/.cache/pip make docs-deps
|
||||||
ADD ./mkdocs.yml .
|
ADD ./mkdocs.yml .
|
||||||
ADD ./docs ./docs
|
ADD ./docs ./docs
|
||||||
RUN make docs-build
|
RUN make docs-build
|
||||||
|
|
||||||
# web
|
# web
|
||||||
ADD ./web/package.json ./web/package-lock.json ./web/
|
ADD ./web/package.json ./web/package-lock.json ./web/
|
||||||
RUN make web-deps
|
RUN --mount=type=cache,target=/root/.npm make web-deps
|
||||||
ADD ./web ./web
|
ADD ./web ./web
|
||||||
RUN make web-build
|
RUN make web-build
|
||||||
|
|
||||||
|
|
@ -45,7 +45,7 @@ ADD ./db ./db
|
||||||
ADD ./message ./message
|
ADD ./message ./message
|
||||||
ADD ./model ./model
|
ADD ./model ./model
|
||||||
ADD ./webpush ./webpush
|
ADD ./webpush ./webpush
|
||||||
RUN make VERSION=$VERSION COMMIT=$COMMIT cli-linux-server
|
RUN --mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build make VERSION=$VERSION COMMIT=$COMMIT cli-linux-server
|
||||||
|
|
||||||
FROM alpine
|
FROM alpine
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue