-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f87fc18
commit 321178c
Showing
11 changed files
with
167 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
DISCORD=your-discord-token | ||
RUNTIPI=runtipi-server-url | ||
JWT_SECRET=your-jwt-secret | ||
APPSTORE=https://github.com/runtipi/runtipi-appstore | ||
DATABASE_PATH=/data/tipicord.db | ||
REFRESH=30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,10 @@ tipicord.db | |
|
||
# Build out | ||
tipicord | ||
tipicord.exe | ||
tipicord.exe | ||
|
||
# Env | ||
.env | ||
|
||
# Data | ||
data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# --- BUILDER ---- | ||
FROM golang:1.23-alpine3.20 AS builder | ||
|
||
WORKDIR /build | ||
|
||
COPY go.mod go.mod | ||
COPY go.sum go.sum | ||
COPY main.go main.go | ||
COPY internal/ internal/ | ||
COPY cmd/ cmd/ | ||
|
||
RUN go mod tidy | ||
|
||
RUN go build -ldflags "-s -w" -o tipicord main.go | ||
|
||
# --- RUNNER ---- | ||
FROM alpine:3.20 AS runner | ||
|
||
WORKDIR /tipicord | ||
|
||
RUN mkdir /data | ||
|
||
COPY --from=builder /build/tipicord /tipicord | ||
|
||
ENV DATABASE_PATH=/data/tipicord.db | ||
|
||
ENTRYPOINT ["/tipicord/tipicord"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
services: | ||
tipicord: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
container_name: tipicord | ||
restart: unless-stopped | ||
env_file: .env | ||
volumes: | ||
- ./data:/data | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
services: | ||
tipicord: | ||
image: ghcr.io/steveiliop56/tipicord:latest | ||
container_name: tipicord | ||
restart: unless-stopped | ||
volumes: | ||
- ./data:/data | ||
environment: | ||
- DISCORD=your-discord-token | ||
- RUNTIPI=runtipi-server-url | ||
- JWT_SECRET=your-jwt-secret | ||
- APPSTORE=https://github.com/runtipi/runtipi-appstore | ||
- DATABASE_PATH=/data/tipicord.db | ||
- REFRESH=30 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters