Files
yt/Dockerfile
root eb32dd1064 Fix Docker deployment and runtime environment variables
- Add --break-system-packages flag to pip install for Alpine Linux 3.12+ compatibility
- Configure Astro server to bind to 0.0.0.0 for Docker container accessibility
- Replace import.meta.env with process.env for runtime environment variable access in SSR
- Enable dynamic LOGIN configuration at runtime

Co-Authored-By: Warp <agent@warp.dev>
2025-12-22 12:41:22 +01:00

31 lines
504 B
Docker

FROM node:20-alpine
# Set default locale to German
ENV LOCALE=de
# yt-dlp und ffmpeg installieren
RUN apk add --no-cache \
python3 \
py3-pip \
ffmpeg \
&& pip3 install --no-cache-dir --break-system-packages yt-dlp
WORKDIR /app
# Package-Dateien kopieren und Dependencies installieren
COPY package*.json ./
RUN npm ci
# Rest der Anwendung kopieren
COPY . .
# Build durchführen
RUN npm run build
# Port freigeben
EXPOSE 4321
# Start-Befehl
CMD ["node", "./dist/server/entry.mjs"]