rewrite na js bo rust jest zjebany

This commit is contained in:
Patryk Koreń
2025-12-26 18:31:14 +01:00
parent 7b72b15caa
commit 375779de9c
23 changed files with 1259 additions and 3827 deletions

View File

@@ -1,22 +1,13 @@
FROM rust:1.91-alpine as builder
RUN rustup target add x86_64-unknown-linux-musl
FROM node:20-alpine
WORKDIR /bot
COPY . .
RUN cargo build --release --target x86_64-unknown-linux-musl
FROM alpine:latest
RUN apk add --no-cache \
ca-certificates \
libgcc \
libstdc++
RUN apk add --no-cache ffmpeg yt-dlp
WORKDIR /app
COPY --from=builder /dbot/target/x86_64-unknown-linux-musl/release/dbot /usr/local/bin/dbot
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build
RUN wget https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux /usr/local/bin/dbot
CMD ["npm", "start"]
CMD ["dbot"]