Skip to content

Instantly share code, notes, and snippets.

@RobDWaller
Created May 17, 2020 06:58
Show Gist options
  • Save RobDWaller/40f99fbbec59b0291cdaa9ebec732961 to your computer and use it in GitHub Desktop.
Save RobDWaller/40f99fbbec59b0291cdaa9ebec732961 to your computer and use it in GitHub Desktop.
Deno Docker Environment
// docker-compose.yml
version: "3"
services:
deno:
build:
context: .
dockerfile: Dockerfile
volumes:
- .:/var/www/html
working_dir: /var/www/html
tty: true
ports:
- "8080:80"
// Dockerfile
FROM ubuntu:18.04
RUN apt-get update && apt-get upgrade -y
RUN apt-get install -y curl vim zip unzip git
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
ENV DENO_INSTALL="/root/.deno"
ENV PATH="$DENO_INSTALL/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment