mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
ci: Publish Docker images (#41)
Co-authored-by: PalmDevs <git@palmdevs.me>
This commit is contained in:
21
apis/websocket/.releaserc
Normal file
21
apis/websocket/.releaserc
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"plugins": [
|
||||
[
|
||||
"@codedependant/semantic-release-docker",
|
||||
{
|
||||
"dockerImage": "revanced-bot-websocket-api",
|
||||
"dockerRegistry": "ghcr.io",
|
||||
"dockerProject": "revanced",
|
||||
"dockerContext": "../..",
|
||||
"dockerPlatform": [
|
||||
"linux/amd64",
|
||||
"linux/arm64"
|
||||
],
|
||||
"dockerArgs": {
|
||||
"GITHUB_ACTOR": null,
|
||||
"GITHUB_TOKEN": null
|
||||
}
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
16
apis/websocket/Dockerfile
Normal file
16
apis/websocket/Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
# This file should be triggered from the monorepo root
|
||||
FROM oven/bun:latest AS base
|
||||
|
||||
FROM base AS build
|
||||
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
RUN cd apis/websocket && bun run build
|
||||
|
||||
FROM base AS release
|
||||
|
||||
WORKDIR /app
|
||||
COPY --from=build /build/apis/websocket/dist /app
|
||||
USER 1000:1000
|
||||
|
||||
ENTRYPOINT [ "bun", "run", "index.js" ]
|
||||
11
apis/websocket/docker-compose.example.yml
Normal file
11
apis/websocket/docker-compose.example.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
services:
|
||||
websocket-api:
|
||||
container_name: revanced-bot-websocket-api
|
||||
image: ghcr.io/revanced/revanced-bot-websocket-api:latest
|
||||
environment:
|
||||
- WIT_AI_TOKEN=
|
||||
volumes:
|
||||
- /data/revanced-bot-websocket-api:/app
|
||||
ports:
|
||||
- 3000:3000
|
||||
restart: unless-stopped
|
||||
Reference in New Issue
Block a user