Skip to content

Commit

Permalink
feat: issue_91 example
Browse files Browse the repository at this point in the history
  • Loading branch information
eliassjogreen committed Oct 10, 2020
1 parent c1f2b85 commit 9e81f99
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 0 deletions.
11 changes: 11 additions & 0 deletions examples/issue_91/.docker/deno.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
FROM debian:stable-slim

RUN apt update -y \
&& apt clean \
&& apt install bash curl unzip -y

RUN curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=/usr/local sh -s v1.4.6
RUN export DENO_INSTALL="/root/.local"
RUN export PATH="$DENO_INSTALL/bin:$PATH"
COPY . denon
RUN deno install -qAfr --unstable denon/denon.ts
20 changes: 20 additions & 0 deletions examples/issue_91/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '3'

services:
server:
container_name: my_server
build:
context: ../../
dockerfile: examples/issue_91/.docker/deno.dockerfile
volumes:
- ./src/server:/var/www/server
working_dir: /var/www/server
ports:
- "1667:1667"
command: bash -c "/root/.deno/bin/denon start"
networks:
- my-app-network

networks:
my-app-network:
driver: bridge
1 change: 1 addition & 0 deletions examples/issue_91/src/server/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// empty as it isnt required to have code
25 changes: 25 additions & 0 deletions examples/issue_91/src/server/denon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"scripts": {
"start": {
"cmd": "deno run app.ts",
"desc": "Run the server.",
"allow": [
"env",
"net",
"read",
"run"
]
}
},
"watcher": {
"interval": 350,
"exts": ["js", "ts", "json"],
"match": ["*.*"],
"legacy": false
},
"logger": {
"fullscreen": false,
"quiet": false,
"debug": true
}
}

0 comments on commit 9e81f99

Please sign in to comment.