Skip to content

Instantly share code, notes, and snippets.

@hayd
Last active September 10, 2019 17:01
Show Gist options
  • Save hayd/ba4412a6c7ae58deb178348a4c6f37a3 to your computer and use it in GitHub Desktop.
Save hayd/ba4412a6c7ae58deb178348a4c6f37a3 to your computer and use it in GitHub Desktop.
deno-docker
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"]
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"]
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"]
@hayd
Copy link
Author

hayd commented Jan 5, 2019

Note: I found the debian install kinda noisy. -qq doesn't work fully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment