Skip to content

Commit

Permalink
Attempt to speed up build
Browse files Browse the repository at this point in the history
  • Loading branch information
dtcooper committed Sep 20, 2024
1 parent fe84438 commit 246796b
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions server/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
ARG CONTAINER="jonasal/nginx-certbot:5.4-alpine"


FROM "${CONTAINER}" AS minijinja-builder

RUN apk add --no-cache cargo
FROM rust:alpine AS minijina-builder

ARG MINIJINJA_VERSION=2.3.1
RUN cargo install \
Expand All @@ -14,7 +9,7 @@ RUN cargo install \
&& strip /build/bin/minijinja-cli


FROM "${CONTAINER}" AS final
FROM jonasal/nginx-certbot:5.4-alpine AS final

COPY --from=minijinja-builder /build/bin/minijinja-cli /usr/local/bin/
COPY --from=minijina-builder /build/bin/minijinja-cli /usr/local/bin/
COPY image/ /

0 comments on commit 246796b

Please sign in to comment.