feat: add docker stuff

This commit is contained in:
shiftinv 2022-09-03 02:13:28 +02:00
parent 04a0ee32ae
commit e164172344
4 changed files with 31 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
*
!lib/
!*.ts
!deno.json

2
.env.example Normal file
View File

@ -0,0 +1,2 @@
SIGN_KEY=
DEBUG=0

12
Dockerfile Normal file
View File

@ -0,0 +1,12 @@
FROM denoland/deno:alpine-1.25.1
WORKDIR /app
USER deno
COPY deps.ts .
RUN deno cache deps.ts
COPY . .
RUN deno cache main.ts
CMD ["run", "--allow-env", "--allow-net=:8080,discord.com", "main.ts"]

13
docker-compose.yml Normal file
View File

@ -0,0 +1,13 @@
version: '3'
services:
main:
image: shiftinv/github-webhook-filter
build: .
restart: unless-stopped
env_file: .env
environment:
HOSTNAME: "0.0.0.0"
PORT: "8080"
ports:
- '127.0.0.1:18080:8080'