feat: add docker stuff
This commit is contained in:
parent
04a0ee32ae
commit
e164172344
|
@ -0,0 +1,4 @@
|
|||
*
|
||||
!lib/
|
||||
!*.ts
|
||||
!deno.json
|
|
@ -0,0 +1,2 @@
|
|||
SIGN_KEY=
|
||||
DEBUG=0
|
|
@ -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"]
|
|
@ -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'
|
Loading…
Reference in New Issue