feat: add frontend + backend + database to retrieve and compute news from Yahoo

This commit is contained in:
2026-04-18 23:53:57 +02:00
parent f9b6d35c49
commit 93668273ff
84 changed files with 15431 additions and 0 deletions

29
backend/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM golang:1.23-bookworm AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o tradarr ./cmd/server
FROM debian:bookworm-slim
# Chromium pour le scraping Bloomberg
RUN apt-get update && apt-get install -y \
chromium \
chromium-driver \
ca-certificates \
fonts-liberation \
libnss3 \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY --from=builder /app/tradarr .
COPY --from=builder /app/internal/database/migrations ./internal/database/migrations
ENV CHROME_PATH=/usr/bin/chromium
EXPOSE 8080
CMD ["./tradarr"]