This commit is contained in:
parent
5e9139e861
commit
e9c42b0b0e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user