mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 18:34:21 -05:00
🗃️ modified: Dockerfile 🗃️
This commit is contained in:
parent
908654bcd0
commit
0a8df9f632
10
Dockerfile
10
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 ./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')"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user