Skip to content

Commit

Permalink
Dockerize
Browse files Browse the repository at this point in the history
  • Loading branch information
felix-schindler committed Jul 2, 2024
1 parent 215b5a0 commit ee0c008
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.*
README.md
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM denoland/deno:alpine

# The port that your application listens to.
EXPOSE 8000

# Set the working directory inside the container (could be any directory)
WORKDIR /app

# Copy all files to the working directory
COPY . .

# Run checks
RUN deno task ok

# Install dependencies
RUN deno task build

# Start app
CMD ["task", "start"]
36 changes: 25 additions & 11 deletions deno.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,47 @@
{
"lock": false,
"nodeModulesDir": true,
"tasks": {
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
"ok": "deno fmt --check && deno lint && deno check **/*.ts **/*.tsx",
"cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
"manifest": "deno task cli manifest $(pwd)",
"dev": "deno run -A --watch=static/,routes/ dev.ts",
"build": "deno run -A dev.ts build",
"start": "deno run -A main.ts",
"update": "deno run -A -r https://fresh.deno.dev/update ."
"update": "deno run -Ar https://fresh.deno.dev/update ."
},
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
"exclude": ["**/_fresh/*"],
"fmt": { "useTabs": true },
"imports": {
"$fresh/": "https://deno.land/x/fresh@1.6.8/",
"@/": "./",
"@deno/gfm": "jsr:@deno/gfm@^0.8.0",
"@deno/gfm": "jsr:@deno/gfm@^0.8.2",
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
"@std/http/cookie": "jsr:@std/http@^0.220.1/cookie",
"@std/path": "jsr:@std/path@^0.220.1",
"icons/": "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/",
"@std/http/cookie": "jsr:@std/http@^0.224.5/cookie",
"@std/path": "jsr:@std/path@^0.225.2",
"icons/": "https://deno.land/x/tabler_icons_tsx@0.0.7/tsx/",
"preact": "https://esm.sh/preact@10.19.6",
"preact/": "https://esm.sh/preact@10.19.6/",
"prism/": "https://esm.sh/prismjs@1.29.0/components/",
"tailwindcss": "npm:tailwindcss@3.4.3",
"tailwindcss/": "npm:/tailwindcss@3.4.3/",
"tailwindcss/plugin": "npm:/tailwindcss@3.4.3/plugin.js"
},
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"nodeModulesDir": true
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},
"fmt": {
"useTabs": true
},
"lint": {
"rules": {
"tags": [
"fresh",
"recommended"
]
}
},
"exclude": [
"**/_fresh/*"
]
}

0 comments on commit ee0c008

Please sign in to comment.