From e9c42b0b0e2d97669e8245c9187fbd9ef87287d0 Mon Sep 17 00:00:00 2001 From: Fabian Stamm Date: Fri, 31 Jul 2020 20:39:58 +0200 Subject: [PATCH] Optimizing dockerfile --- registry/Dockerfile | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/registry/Dockerfile b/registry/Dockerfile index da4ff70..dab392c 100644 --- a/registry/Dockerfile +++ b/registry/Dockerfile @@ -1,30 +1,7 @@ -FROM debian:bullseye-slim AS builder - -ENV DENO_VERSION=1.2.1 - -WORKDIR /build - -RUN apt-get update && apt-get install -y curl zip - -RUN curl -fsSL https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip --output deno.zip -RUN unzip deno.zip -RUN rm deno.zip -RUN chmod 777 deno -RUN chmod +x deno -RUN mv deno /usr/bin/deno - -FROM debian:bullseye-slim - -COPY --from=builder /usr/bin/deno /usr/bin/deno - -RUN ls /usr/bin/deno +FROM hibas123.azurecr.io/deno WORKDIR /app -COPY src/deps.ts /app/src/deps.ts - -RUN /usr/bin/deno cache --unstable src/deps.ts - ADD src /app/src RUN /usr/bin/deno cache --unstable src/registry.ts