Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Ignore certain directories
.git/
node_modules/
.github/
assets/
**/bin/
**/dist/
**/node_modules/

# Ignore certain files
Dockerfile*
docker-compose*
compose*
README*
Dockerfile
README.md
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Frontend builder Image
FROM node:25-slim AS frontend-builder
FROM node:24-slim AS frontend-builder

WORKDIR /app

Expand All @@ -11,7 +11,7 @@ RUN corepack enable
# Install dependencies
COPY ./frontend/package.json .
COPY ./frontend/pnpm-lock.yaml .
RUN pnpm install --prod --frozen-lockfile
RUN pnpm install --frozen-lockfile

# Build
COPY ./frontend .
Expand All @@ -34,10 +34,13 @@ RUN go build -v -o ./bin/ .
# Distribution Image
FROM alpine:latest


RUN apk add --no-cache libc6-compat

COPY --from=backend-builder /app/bin/twitchets /usr/bin/twitchets

EXPOSE 9000

WORKDIR /twitchets

ENTRYPOINT ["/usr/bin/twitchets"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Powered by [twigots](https://github.com/ahobsonsayers/twigots), a Go package to

### And a fancy configuration UI!

![frontend](assets/frontend.mp4)
https://github.com/user-attachments/assets/63e0fd3f-d767-4131-aae1-c18016008b20

## Getting an API Key

Expand Down Expand Up @@ -57,7 +57,7 @@ services:
image: arranhs/twitchets:latest
restart: unless-stopped
volumes:
- <path to config>:/twitchets
- <path to config file>:/twitchets/config.yaml
```

## Configuration
Expand Down
17 changes: 6 additions & 11 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ tasks:
cmds:
- run build

build:docker:
cmds:
- docker build . -t arranhs/twitchets

run:be:
cmds:
- go run .
Expand All @@ -80,11 +76,10 @@ tasks:
cmds:
- pnpm run dev

run:docker:
deps: [build:docker]
docker:build:
cmds:
- docker compose build

docker:run:
cmds:
- |
docker run --rm \
--name twitchets \
-p 5656:5656 \
arranhs/twitchets
- docker compose up --build
12 changes: 12 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
twitchets:
container_name: twitchets
image: arranhs/twitchets:latest
build:
dockerfile: Dockerfile
context: .
restart: unless-stopped
ports:
- 9000:9000
volumes:
- ./config.yaml:/twitchets/config.yaml
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"version": "1.0.0",
"type": "module",
"engines": {
"node": "^25"
"node": "^24"
},
"packageManager": "pnpm@10.13.1",
"packageManager": "pnpm@10.24.0",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
Expand Down
Loading