From 0a8df9f632403e62aa2691449d05d69311167da5 Mon Sep 17 00:00:00 2001 From: Jason Date: Sun, 10 Jul 2022 10:11:31 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=97=83=EF=B8=8F=20=20modified:=20Dockerfi?= =?UTF-8?q?le=20=F0=9F=97=83=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1b12560..38ebd3f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,17 @@ -FROM casjaysdevdocker/alpine:latest as build +FROM casjaysdevdocker/alpine:latest as source -RUN apk --no-cache add --update +RUN apk --no-cache add --update cargo rust && \ + git clone --recurse-submodules https://github.com/denoland/deno.git /build && \ + cd /build && cargo cargo clean && cargo build -vv && ./target/release/deno --version || exit 10 COPY ./bin/. /usr/local/bin/ COPY ./config/. /config/ COPY ./data/. /data/ +FROM casjaysdevdocker/alpine:latest as build + +COPY --from=source /build/target/release/deno /usr/bin/deno + FROM scratch ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"