🗃️ modified: Dockerfile 🗃️

This commit is contained in:
Jason 2022-07-10 10:11:31 -04:00
parent 908654bcd0
commit 0a8df9f632
No known key found for this signature in database
GPG Key ID: 4F765975C1F0EE5F

View File

@ -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 ./bin/. /usr/local/bin/
COPY ./config/. /config/ COPY ./config/. /config/
COPY ./data/. /data/ COPY ./data/. /data/
FROM casjaysdevdocker/alpine:latest as build
COPY --from=source /build/target/release/deno /usr/bin/deno
FROM scratch FROM scratch
ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')" ARG BUILD_DATE="$(date +'%Y-%m-%d %H:%M')"