Last active
September 10, 2019 17:01
-
-
Save hayd/ba4412a6c7ae58deb178348a4c6f37a3 to your computer and use it in GitHub Desktop.
deno-docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM frolvlad/alpine-glibc:alpine-3.8 | |
ENV DENO_VERSION=0.2.5 | |
RUN apk add --no-cache curl && \ | |
curl -fsSL https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno_linux_x64.gz --output deno.gz && \ | |
gunzip deno.gz && \ | |
chmod 777 deno && \ | |
mv deno /bin/deno && \ | |
apk del curl | |
ENTRYPOINT ["deno", "https://deno.land/thumb.ts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM debian:stretch-slim | |
ENV DENO_VERSION=0.2.5 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get -qq update && \ | |
apt-get -qq install -y --no-install-recommends curl ca-certificates && \ | |
curl -fsSL https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno_linux_x64.gz --output deno.gz && \ | |
gunzip deno.gz && \ | |
chmod 777 deno && \ | |
mv deno /usr/bin/deno && \ | |
apt-get -qq clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
ENTRYPOINT ["deno", "https://deno.land/thumb.ts"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM phusion/baseimage:0.11 | |
ENV DENO_VERSION=0.2.5 | |
RUN apt-get install -y curl && \ | |
curl -fsSL https://github.com/denoland/deno/releases/download/v${DENO_VERSION}/deno_linux_x64.gz --output deno.gz && \ | |
gunzip deno.gz && \ | |
chmod 777 deno && \ | |
mv deno /usr/bin/deno && \ | |
apt-get remove -y curl && \ | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
ENTRYPOINT ["deno", "https://deno.land/thumb.ts"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Note: I found the debian install kinda noisy. -qq doesn't work fully.