-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (19 loc) · 726 Bytes
/
Dockerfile
File metadata and controls
30 lines (19 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM alpine as downloader
RUN set -x \
&& apk add --no-cache curl unzip
ARG DENO_VERSION=1.5.2
ENV DENO_VERSION=${DENO_VERSION}
RUN set -x \
&& curl -L -o /tmp/deno.zip https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno-x86_64-unknown-linux-gnu.zip \
&& unzip -d /usr/local/bin /tmp/deno.zip \
&& rm -rf /tmp/deno.zip \
&& chmod +x /usr/local/bin/deno
FROM frolvlad/alpine-glibc:alpine-3.12_glibc-2.31
COPY --from=downloader /usr/local/bin/deno /usr/local/bin/deno
ENV DENO_DIR /root/.deno
RUN set -x \
&& addgroup -g 1000 -S deno \
&& adduser -u 1000 -S deno -G deno
VOLUME [ "/root/.deno" ]
ENTRYPOINT [ "deno" ]
CMD ["https://deno.land/std/examples/welcome.ts"]