Created
May 17, 2020 06:58
-
-
Save RobDWaller/40f99fbbec59b0291cdaa9ebec732961 to your computer and use it in GitHub Desktop.
Deno Docker Environment
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
// 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